comparison src/protocols/sametime/sametime.c @ 12863:7a2169f04bdf

[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 <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Fri, 13 Jan 2006 22:00:34 +0000
parents 3b4a6e426b99
children 2c0f8815aa2e
comparison
equal deleted inserted replaced
12862:b503265495f7 12863:7a2169f04bdf
1911 struct mwSession *session; 1911 struct mwSession *session;
1912 struct mwGaimPluginData *pd; 1912 struct mwGaimPluginData *pd;
1913 GaimConnection *gc; 1913 GaimConnection *gc;
1914 char *esc; 1914 char *esc;
1915 1915
1916 if(! text) return;
1917
1916 srvc = mwConference_getService(conf); 1918 srvc = mwConference_getService(conf);
1917 session = mwService_getSession(MW_SERVICE(srvc)); 1919 session = mwService_getSession(MW_SERVICE(srvc));
1918 pd = mwSession_getClientData(session); 1920 pd = mwSession_getClientData(session);
1919 gc = pd->gc; 1921 gc = pd->gc;
1920 1922
1921 esc = g_markup_escape_text(text? text: "", -1); 1923 esc = g_markup_escape_text(text);
1922 serv_got_chat_in(gc, CONF_TO_ID(conf), who->user_id, 0, esc, time(NULL)); 1924 serv_got_chat_in(gc, CONF_TO_ID(conf), who->user_id, 0, esc, time(NULL));
1923 g_free(esc); 1925 g_free(esc);
1924 } 1926 }
1925 1927
1926 1928
2983 struct mwSession *session; 2985 struct mwSession *session;
2984 struct mwGaimPluginData *pd; 2986 struct mwGaimPluginData *pd;
2985 GaimConnection *gc; 2987 GaimConnection *gc;
2986 char *esc; 2988 char *esc;
2987 2989
2990 if(! msg) return;
2991
2988 srvc = mwPlace_getService(place); 2992 srvc = mwPlace_getService(place);
2989 session = mwService_getSession(MW_SERVICE(srvc)); 2993 session = mwService_getSession(MW_SERVICE(srvc));
2990 pd = mwSession_getClientData(session); 2994 pd = mwSession_getClientData(session);
2991 gc = pd->gc; 2995 gc = pd->gc;
2992 2996
2993 esc = g_markup_escape_text(msg? msg: "", -1); 2997 esc = g_markup_escape_text(msg);
2994 serv_got_chat_in(gc, PLACE_TO_ID(place), who->user, 0, esc, time(NULL)); 2998 serv_got_chat_in(gc, PLACE_TO_ID(place), who->user, 0, esc, time(NULL));
2995 g_free(esc); 2999 g_free(esc);
2996 } 3000 }
2997 3001
2998 3002