diff libpurple/protocols/oscar/family_icbm.c @ 27532:074e67a105be

Set the "we support SMS!" ICBM flag. This causes buddies with mobile forwarding to show up online and allows us to IM them. It's a bit weird that an ICBM flag affects the presence that gets sent to us. I also cleaned up these flags a little and added a #define for each value.
author Mark Doliner <mark@kingant.net>
date Tue, 14 Jul 2009 07:06:22 +0000
parents a2508ac2e536
children 993483dda1b8
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_icbm.c	Tue Jul 14 01:28:16 2009 +0000
+++ b/libpurple/protocols/oscar/family_icbm.c	Tue Jul 14 07:06:22 2009 +0000
@@ -221,7 +221,11 @@
 	params.maxrecverwarn = byte_stream_get16(bs);
 	params.minmsginterval = byte_stream_get32(bs);
 
-	params.flags = 0x0000000b | AIM_IMPARAM_FLAG_SUPPORT_OFFLINEMSGS;
+	params.flags = AIM_IMPARAM_FLAG_CHANNEL_MSGS_ALLOWED
+			| AIM_IMPARAM_FLAG_MISSED_CALLS_ENABLED
+			| AIM_IMPARAM_FLAG_EVENTS_ALLOWED
+			| AIM_IMPARAM_FLAG_SMS_SUPPORTED
+			| AIM_IMPARAM_FLAG_OFFLINE_MSGS_ALLOWED;
 	params.maxmsglen = 8000;
 	params.minmsginterval = 0;