# HG changeset patch # User Christopher O'Brien # Date 1137189634 0 # Node ID 7a2169f04bdfb1a556fa87ef919ff59f254b2f19 # Parent b503265495f7c640301b1aa8fe4fe6bc2f43607f [gaim-migrate @ 15214] I think blank messages on chats were meant to be ignored, actually. Seems some clients send 'em on join. committer: Tailor Script diff -r b503265495f7 -r 7a2169f04bdf src/protocols/sametime/sametime.c --- a/src/protocols/sametime/sametime.c Fri Jan 13 18:06:18 2006 +0000 +++ b/src/protocols/sametime/sametime.c Fri Jan 13 22:00:34 2006 +0000 @@ -1913,12 +1913,14 @@ GaimConnection *gc; char *esc; + if(! text) return; + srvc = mwConference_getService(conf); session = mwService_getSession(MW_SERVICE(srvc)); pd = mwSession_getClientData(session); gc = pd->gc; - esc = g_markup_escape_text(text? text: "", -1); + esc = g_markup_escape_text(text); serv_got_chat_in(gc, CONF_TO_ID(conf), who->user_id, 0, esc, time(NULL)); g_free(esc); } @@ -2985,12 +2987,14 @@ GaimConnection *gc; char *esc; + if(! msg) return; + srvc = mwPlace_getService(place); session = mwService_getSession(MW_SERVICE(srvc)); pd = mwSession_getClientData(session); gc = pd->gc; - esc = g_markup_escape_text(msg? msg: "", -1); + esc = g_markup_escape_text(msg); serv_got_chat_in(gc, PLACE_TO_ID(place), who->user, 0, esc, time(NULL)); g_free(esc); }