# HG changeset patch # User Mark Doliner # Date 1141877094 0 # Node ID d18f5962d454c71e7698dfaa73fea3281fd73a60 # Parent 465c368366f83d597f4c68c7844a0ee3c9f13363 [gaim-migrate @ 15853] A wee part o' sf patch #1438833, from Sadrul Habib Chowdhury Clear the available message we've set on the server when the user sets themself to available WITH a message and then sets themself to available WITHOUT a message committer: Tailor Script diff -r 465c368366f8 -r d18f5962d454 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Thu Mar 09 04:02:09 2006 +0000 +++ b/src/protocols/oscar/oscar.c Thu Mar 09 04:04:54 2006 +0000 @@ -6816,9 +6816,15 @@ char *tmp = g_utf8_find_prev_char(status_text, &status_text[58]); strcpy(tmp, "..."); } - aim_srv_setstatusmsg(od->sess, status_text); - g_free(status_text); } + else + { + /* User did not specify an available message */ + status_text = NULL; + } + + aim_srv_setstatusmsg(od->sess, status_text); + g_free(status_text); /* This is needed for us to un-set any previous away message. */ away = g_strdup("");