Mercurial > pidgin.yaz
comparison src/protocols/toc/toc.c @ 3188:49fb2b634a2a
[gaim-migrate @ 3205]
The Robot101 commit.
A toc fix (don't use toc) and the possibility to compile iconaway.c on an
applet and use it on the standalone app.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 27 Apr 2002 19:41:07 +0000 |
parents | fce1883cc608 |
children | 8fa61405af2b |
comparison
equal
deleted
inserted
replaced
3187:01279615a5fe | 3188:49fb2b634a2a |
---|---|
1001 char buf[BUF_LEN * 2]; | 1001 char buf[BUF_LEN * 2]; |
1002 if (g->away) | 1002 if (g->away) |
1003 g_free (g->away); | 1003 g_free (g->away); |
1004 g->away = NULL; | 1004 g->away = NULL; |
1005 if (message) { | 1005 if (message) { |
1006 char *tmp = g_malloc(strlen(message) * 4 + 1); | |
1007 strcpy(tmp, message); | |
1006 g->away = g_strdup (message); | 1008 g->away = g_strdup (message); |
1007 escape_text(message); | 1009 escape_text(tmp); |
1008 g_snprintf(buf, MSG_LEN, "toc_set_away \"%s\"", message); | 1010 g_snprintf(buf, MSG_LEN, "toc_set_away \"%s\"", tmp); |
1011 g_free(tmp); | |
1009 } else | 1012 } else |
1010 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); | 1013 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); |
1011 sflap_send(g, buf, -1, TYPE_DATA); | 1014 sflap_send(g, buf, -1, TYPE_DATA); |
1012 } | 1015 } |
1013 | 1016 |