comparison src/protocols/irc/msgs.c @ 8965:0c435a36b5bf

[gaim-migrate @ 9739] (15:35:43) nosnilmot: Paco-Paco: does this look ok to you? : http://www.nosnilmot.com/patches/gaim-0.78cvs-irc-escape-wallops.patch (15:36:51) Paco-Paco: nosnilmot: yes (15:36:57) Paco-Paco: nosnilmot: LSchiere2 is happy to apply it immediately committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 17 May 2004 19:39:29 +0000
parents 07404dc25af8
children c55aa23bf56e
comparison
equal deleted inserted replaced
8964:faf9a6e56aec 8965:0c435a36b5bf
860 } 860 }
861 861
862 void irc_msg_wallops(struct irc_conn *irc, const char *name, const char *from, char **args) 862 void irc_msg_wallops(struct irc_conn *irc, const char *name, const char *from, char **args)
863 { 863 {
864 GaimConnection *gc = gaim_account_get_connection(irc->account); 864 GaimConnection *gc = gaim_account_get_connection(irc->account);
865 char *nick, *msg; 865 char *nick, *msg, *wallop;
866 866
867 if (!args || !args[0] || !gc) 867 if (!args || !args[0] || !gc)
868 return; 868 return;
869 869
870 nick = irc_mask_nick(from); 870 nick = irc_mask_nick(from);
871 msg = g_strdup_printf (_("Wallops from %s"), nick); 871 msg = g_strdup_printf (_("Wallops from %s"), nick);
872 g_free(nick); 872 g_free(nick);
873 gaim_notify_info(gc, NULL, msg, args[0]); 873 wallop = g_markup_escape_text(args[0], strlen(args[0]));
874 gaim_notify_info(gc, NULL, msg, wallop);
874 g_free(msg); 875 g_free(msg);
876 g_free(wallop);
875 } 877 }
876 878
877 void irc_msg_ignore(struct irc_conn *irc, const char *name, const char *from, char **args) 879 void irc_msg_ignore(struct irc_conn *irc, const char *name, const char *from, char **args)
878 { 880 {
879 return; 881 return;