From 1e14a6d0895021d63032399db76d528e290991b1 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 11 Dec 2013 21:20:56 +0100 Subject: irc: display mask of ignore deleted with /ignore del --- src/plugins/irc/irc-command.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/plugins/irc') diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 9efc16d27..82d60f293 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2001,9 +2001,13 @@ irc_command_ignore (void *data, struct t_gui_buffer *buffer, int argc, ptr_ignore = irc_ignore_search_by_number (number); if (ptr_ignore) { + mask = weechat_strndup (ptr_ignore->mask + 1, + strlen (ptr_ignore->mask) - 2); irc_ignore_free (ptr_ignore); - weechat_printf (NULL, _("%s: ignore deleted"), - IRC_PLUGIN_NAME); + weechat_printf (NULL, _("%s: ignore \"%s\" deleted"), + IRC_PLUGIN_NAME, mask); + if (mask) + free (mask); } else { -- cgit v1.2.3