Mercurial > ~mikael > mcabber > hg
diff mcabber/src/commands.c @ 1528:4b4b3948420c
MUC fix: the topic couldn't be cleared
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 04 Oct 2008 13:03:42 +0200 |
parents | ac87eef9050f |
children | 248da27faff3 |
line wrap: on
line diff
--- a/mcabber/src/commands.c Thu Oct 02 22:05:10 2008 +0200 +++ b/mcabber/src/commands.c Sat Oct 04 13:03:42 2008 +0200 @@ -2584,9 +2584,14 @@ return; } + // If arg is "-", let's clear the topic + if (!strcmp(arg, "-")) + arg = NULL; + arg = to_utf8(arg); // Set the topic - jb_send_msg(buddy_getjid(bud), NULL, ROSTER_TYPE_ROOM, arg, NULL, NULL, NULL); + jb_send_msg(buddy_getjid(bud), NULL, ROSTER_TYPE_ROOM, arg ? arg : "", + NULL, NULL, NULL); g_free(arg); }