slack.lua: improve input hook matching

This commit is contained in:
Přemysl Eric Janouch 2017-05-17 15:05:51 +02:00
parent bdc6334aec
commit f744681b17
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 1 deletions

View File

@ -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)