changeset 2277:4f2a6268c5ec

[gaim-migrate @ 2287] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 13 Sep 2001 21:26:17 +0000
parents 8f9aa8739bf1
children 00a8b7bcef6c
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Sep 13 05:52:07 2001 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Sep 13 21:26:17 2001 +0000
@@ -1262,15 +1262,8 @@
 	struct gaim_connection *gc = sess->aux_data;
 	int flags = 0;
 
-	if (sizeof(gaim_features) == args->featureslen) {
-		int i;
-		for (i = 0; i < args->featureslen; i++) {
-			if (gaim_features[i] != args->features[i])
-				break;
-		}
-		if (i == args->featureslen)
-			flags |= IM_FLAG_GAIMUSER;
-	}
+	if ((sizeof(gaim_features) == args->featureslen) && !memcmp(gaim_features, args->features, args->featureslen))
+		flags |= IM_FLAG_GAIMUSER;
 
 	if (args->icbmflags & AIM_IMFLAGS_AWAY)
 		flags |= IM_FLAG_AWAY;