Mercurial > pidgin
changeset 13477:d18f5962d454
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Mar 2006 04:04:54 +0000 |
parents | 465c368366f8 |
children | 38dcde2c8c4b |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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("");