summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Blanton <elb@fiji-systems.com>2014-11-14 11:45:35 -0500
committerEthan Blanton <elb@fiji-systems.com>2014-11-14 11:45:35 -0500
commit9270c02050195e6ccf1db694365565d1ad80e12e (patch)
treee5b64c0675653320b59814cf09ec762c6ec101eb
parentd9532a5e0ba6fc17c2e61353e500fafd2991295c (diff)
downloadpidgin-9270c02050195e6ccf1db694365565d1ad80e12e.tar.gz
Display IRC MOTD in font-family: monospace. Fixes #13727
-rw-r--r--libpurple/protocols/irc/irc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpurple/protocols/irc/irc.c b/libpurple/protocols/irc/irc.c
index a211b1031a..bfda0e7b05 100644
--- a/libpurple/protocols/irc/irc.c
+++ b/libpurple/protocols/irc/irc.c
@@ -66,7 +66,7 @@ static void irc_view_motd(PurplePluginAction *action)
{
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 @@ static void irc_view_motd(PurplePluginAction *action)
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);
}