Mercurial > pidgin
diff src/protocols/irc/cmds.c @ 8504:534b479692d0
[gaim-migrate @ 9240]
Patch to make IRC topics such as "Gaim > Oranges" display correctly in
conversation windows. This is from A. C. Li, I think. Right?
In any case, thanks to the author
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 25 Mar 2004 22:57:37 +0000 |
| parents | 77baefe979c6 |
| children | da687392cbcb |
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c Thu Mar 25 06:51:51 2004 +0000 +++ b/src/protocols/irc/cmds.c Thu Mar 25 22:57:37 2004 +0000 @@ -23,8 +23,10 @@ #include "internal.h" #include "conversation.h" +#include "debug.h" #include "notify.h" -#include "debug.h" +#include "util.c" + #include "irc.h" @@ -462,9 +464,11 @@ if (!args[0]) { topic = gaim_conv_chat_get_topic (GAIM_CONV_CHAT(convo)); - if (topic) - buf = g_strdup_printf(_("current topic is: %s"), topic); - else + if (topic) { + char *tmp = gaim_escape_html(topic); + buf = g_strdup_printf(_("current topic is: %s"), tmp); + g_free(tmp); + } else buf = g_strdup(_("No topic is set")); gaim_conv_chat_write(GAIM_CONV_CHAT(convo), target, buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); g_free(buf);
