From f744681b174004a4932e90ecc13d140bf2e1c5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 17 May 2017 15:05:51 +0200 Subject: [PATCH] slack.lua: improve input hook matching --- plugins/degesch/slack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/degesch/slack.lua b/plugins/degesch/slack.lua index 89f0adf..456d3b0 100644 --- a/plugins/degesch/slack.lua +++ b/plugins/degesch/slack.lua @@ -57,7 +57,7 @@ end) -- The gateway simply ignores the NAMES command altogether degesch.hook_input (function (hook, buffer, input) if not buffer.channel or not servers[buffer.server.name] - or not input:match "^/names%s*" then return input end + or not input:match "^/names%s*$" then return input end local users = buffer.channel.users table.sort (users, function (a, b)