From ebe0ad4cd5d685a8d2dca667b18ccbd876a2ebf9 Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 12 Dec 2014 05:21:55 -0500 Subject: [PATCH] fishlim: Strip whitespace when deleting keys This fixes a personal annoyance when you tab complete a channel to delete --- plugins/fishlim/plugin_hexchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fishlim/plugin_hexchat.c b/plugins/fishlim/plugin_hexchat.c index 0219e5fa..ce0e8a69 100644 --- a/plugins/fishlim/plugin_hexchat.c +++ b/plugins/fishlim/plugin_hexchat.c @@ -223,7 +223,7 @@ static int handle_delkey(char *word[], char *word_eol[], void *userdata) { return HEXCHAT_EAT_HEXCHAT; } - nick = word_eol[2]; + nick = g_strstrip (word_eol[2]); // Delete the given nick from the key store if (keystore_delete_nick(nick)) {