summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-12 05:21:55 -0500
committerTingPing <tingping@tingping.se>2014-12-15 15:07:43 -0500
commitebe0ad4cd5d685a8d2dca667b18ccbd876a2ebf9 (patch)
treef855f7003e0999c60f68e35d33124dc76dd8aa04
parentbdb5c3eb9ddafff656953ff048b6b3bbb3234181 (diff)
fishlim: Strip whitespace when deleting keys
This fixes a personal annoyance when you tab complete
a channel to delete
-rw-r--r--plugins/fishlim/plugin_hexchat.c2
1 files changed, 1 insertions, 1 deletions
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)) {