diff src/protocols/oscar/im.c @ 2507:1069b0940237

[gaim-migrate @ 2520] hi. this is better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 15 Oct 2001 03:16:01 +0000
parents 95b4ec08abec
children 93f9bbd62630
line wrap: on
line diff
--- a/src/protocols/oscar/im.c	Mon Oct 15 02:43:44 2001 +0000
+++ b/src/protocols/oscar/im.c	Mon Oct 15 03:16:01 2001 +0000
@@ -1383,14 +1383,6 @@
 	channel = aimbs_get16(bs);
 
 	/*
-	 * Technically Channel 3 in chat could be done here too.
-	 */
-	if ((channel != 0x01) && (channel != 0x02)) {
-		faimdprintf(sess, 0, "icbm: ICBM received on an unsupported channel.  Ignoring.\n (chan = %04x)", channel);
-		return 0;
-	}
-
-	/*
 	 * Extract the standard user info block.
 	 *
 	 * Note that although this contains TLVs that appear contiguous
@@ -1434,6 +1426,9 @@
 		 * Free up the TLV chain.
 		 */
 		aim_freetlvchain(&tlvlist);
+	} else {
+		faimdprintf(sess, 0, "icbm: ICBM received on an unsupported channel.  Ignoring.\n (chan = %04x)", channel);
+		return 0;
 	}
 
 	return ret;