comparison src/protocols/oscar/oscar.c @ 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 8355b578a21e
children cfc2f7fcb3dd
comparison
equal deleted inserted replaced
13476:465c368366f8 13477:d18f5962d454
6814 if (strlen(status_text) > 60) 6814 if (strlen(status_text) > 60)
6815 { 6815 {
6816 char *tmp = g_utf8_find_prev_char(status_text, &status_text[58]); 6816 char *tmp = g_utf8_find_prev_char(status_text, &status_text[58]);
6817 strcpy(tmp, "..."); 6817 strcpy(tmp, "...");
6818 } 6818 }
6819 aim_srv_setstatusmsg(od->sess, status_text); 6819 }
6820 g_free(status_text); 6820 else
6821 } 6821 {
6822 /* User did not specify an available message */
6823 status_text = NULL;
6824 }
6825
6826 aim_srv_setstatusmsg(od->sess, status_text);
6827 g_free(status_text);
6822 6828
6823 /* This is needed for us to un-set any previous away message. */ 6829 /* This is needed for us to un-set any previous away message. */
6824 away = g_strdup(""); 6830 away = g_strdup("");
6825 } 6831 }
6826 else if (primitive == GAIM_STATUS_AWAY) 6832 else if (primitive == GAIM_STATUS_AWAY)