changeset 28955:57550ffb7870

jabber: Log a warning (with the shortcut) when refusing to send a smiley.
author Paul Aurich <paul@darkrain42.org>
date Wed, 03 Feb 2010 21:40:39 +0000
parents 68cd5a8a3ffe
children 36dff94b1b53
files ChangeLog libpurple/protocols/jabber/message.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Feb 03 21:37:42 2010 +0000
+++ b/ChangeLog	Wed Feb 03 21:40:39 2010 +0000
@@ -38,8 +38,8 @@
 	* Don't do an SRV lookup for a STUN server associated with the account
 	  if one is already set globally in prefs.
 	* Don't send custom smileys larger than the recommended maximum object size
-	  specified in the BoB XEP. Will prevent getting disconnected because of
-	  sending to large stanzas.
+	  specified in the BoB XEP.   This prevents a client from being
+	  disconnected by servers that dislike overly-large stanzas.
 
 	Yahoo:
 	* Don't send <span> and </span> tags.  (Fartash Faghri)
--- a/libpurple/protocols/jabber/message.c	Wed Feb 03 21:37:42 2010 +0000
+++ b/libpurple/protocols/jabber/message.c	Wed Feb 03 21:40:39 2010 +0000
@@ -1013,6 +1013,10 @@
 					valid_smileys = g_list_append(valid_smileys, smiley);
 				} else {
 					has_too_large_smiley = TRUE;
+					purple_debug_warning("jabber", "Refusing to send smiley %s "
+							"(too large, max is %d)\n",
+							purple_smiley_get_shortcut(smiley),
+							JABBER_DATA_MAX_SIZE);
 				}				
 			}