From f744681b174004a4932e90ecc13d140bf2e1c5b3 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Wed, 17 May 2017 15:05:51 +0200 Subject: slack.lua: improve input hook matching --- plugins/degesch/slack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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) -- cgit v1.2.3-70-g09d2