changeset 30148:787d82881a3e

Rename this flag and add a happy bumble bee comment
author Mark Doliner <mark@kingant.net>
date Fri, 16 Apr 2010 01:59:16 +0000
parents 54289a753667
children b983db2b01f5 983a04639c2b
files libpurple/protocols/oscar/family_icbm.c libpurple/protocols/oscar/oscar.h
diffstat 2 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_icbm.c	Thu Apr 15 04:21:55 2010 +0000
+++ b/libpurple/protocols/oscar/family_icbm.c	Fri Apr 16 01:59:16 2010 +0000
@@ -274,8 +274,8 @@
 			| AIM_IMPARAM_FLAG_MISSED_CALLS_ENABLED
 			| AIM_IMPARAM_FLAG_EVENTS_ALLOWED
 			| AIM_IMPARAM_FLAG_SMS_SUPPORTED
-			| AIM_IMPARAM_FLAG_SEND_ME_HTML_FOR_ICQ
-			| AIM_IMPARAM_FLAG_OFFLINE_MSGS_ALLOWED;
+			| AIM_IMPARAM_FLAG_OFFLINE_MSGS_ALLOWED
+			| AIM_IMPARAM_FLAG_USE_HTML_FOR_ICQ;
 	params.maxmsglen = 8000;
 	params.minmsginterval = 0;
 
--- a/libpurple/protocols/oscar/oscar.h	Thu Apr 15 04:21:55 2010 +0000
+++ b/libpurple/protocols/oscar/oscar.h	Fri Apr 16 01:59:16 2010 +0000
@@ -746,7 +746,21 @@
 #define AIM_IMPARAM_FLAG_EVENTS_ALLOWED         0x00000008
 #define AIM_IMPARAM_FLAG_SMS_SUPPORTED          0x00000010
 #define AIM_IMPARAM_FLAG_OFFLINE_MSGS_ALLOWED   0x00000100
-#define AIM_IMPARAM_FLAG_SEND_ME_HTML_FOR_ICQ   0x00000400
+
+/**
+ * This flag tells the server that we always send HTML in messages
+ * sent from an ICQ account to an ICQ account.  (If this flag is
+ * not sent then plaintext is sent ICQ<-->ICQ (HTML is sent in all
+ * other cases)).
+ *
+ * If we send an HTML message to an old client that doesn't support
+ * HTML messages, then the oscar servers will merrily strip the HTML
+ * for us.
+ *
+ * When we receive an IM we look at the features on the ICBM to
+ * determine if the message is HTML or plaintext.
+ */
+#define AIM_IMPARAM_FLAG_USE_HTML_FOR_ICQ       0x00000400
 
 /* This is what the server will give you if you don't set them yourself. */
 /* This is probably out of date. */