aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-17 15:05:51 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-17 15:05:51 +0200
commitf744681b174004a4932e90ecc13d140bf2e1c5b3 (patch)
tree7af68f5407470495e6367f48880ac6d48a12703e /plugins
parentbdc6334aec32a31ed41fc44bff09a0462cd48046 (diff)
downloadxK-f744681b174004a4932e90ecc13d140bf2e1c5b3.tar.gz
xK-f744681b174004a4932e90ecc13d140bf2e1c5b3.tar.xz
xK-f744681b174004a4932e90ecc13d140bf2e1c5b3.zip
slack.lua: improve input hook matching
Diffstat (limited to 'plugins')
-rw-r--r--plugins/degesch/slack.lua2
1 files changed, 1 insertions, 1 deletions
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)