slack.lua: improve input hook matching
This commit is contained in:
parent
bdc6334aec
commit
f744681b17
|
@ -57,7 +57,7 @@ end)
|
||||||
-- The gateway simply ignores the NAMES command altogether
|
-- The gateway simply ignores the NAMES command altogether
|
||||||
degesch.hook_input (function (hook, buffer, input)
|
degesch.hook_input (function (hook, buffer, input)
|
||||||
if not buffer.channel or not servers[buffer.server.name]
|
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
|
local users = buffer.channel.users
|
||||||
table.sort (users, function (a, b)
|
table.sort (users, function (a, b)
|
||||||
|
|
Loading…
Reference in New Issue