pidgin/pidgin

Display IRC MOTD in font-family: monospace. Fixes #13727
release-2.x.y
2014-11-14, Ethan Blanton
88ce4f534696
Parents 2c1483188cf5
Children 78abe6e4a789
Display IRC MOTD in font-family: monospace. Fixes #13727
--- a/libpurple/protocols/irc/irc.c Thu Nov 13 03:55:54 2014 -0500
+++ b/libpurple/protocols/irc/irc.c Fri Nov 14 11:45:35 2014 -0500
@@ -66,7 +66,7 @@
{
PurpleConnection *gc = (PurpleConnection *) action->context;
struct irc_conn *irc;
- char *title;
+ char *title, *body;
if (gc == NULL || gc->proto_data == NULL) {
purple_debug(PURPLE_DEBUG_ERROR, "irc", "got MOTD request for NULL gc\n");
@@ -79,7 +79,8 @@
return;
}
title = g_strdup_printf(_("MOTD for %s"), irc->server);
- purple_notify_formatted(gc, title, title, NULL, irc->motd->str, NULL, NULL);
+ body = g_strdup_printf("<span style=\"font-family: monospace;\">%s</span>", irc->motd->str);
+ purple_notify_formatted(gc, title, title, NULL, body, NULL, NULL);
g_free(title);
}