]> andersk Git - libfaim.git/blobdiff - src/im.c
- Sun Oct 14 19:45:54 PDT 2001
[libfaim.git] / src / im.c
index b47b14c66fcb39ff8a9b31c13ce931db96e0eecf..747c773fbd42206ccda2b610af29073b4a38e10a 100644 (file)
--- a/src/im.c
+++ b/src/im.c
@@ -1382,14 +1382,6 @@ static int incomingim(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, a
         */
        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.
         *
@@ -1434,6 +1426,9 @@ static int incomingim(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, a
                 * 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;
This page took 0.148787 seconds and 4 git commands to generate.