Skip to content

Commit fbc9131

Browse files
committed
Ye olde modes bug
1 parent 442a649 commit fbc9131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/irc/scripts/acl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ addEventHandler("onIRCMessage",root,
4747
function (channel,message)
4848
local cmd = gettok(message,1,32)
4949
local args = split(message,32)
50-
if commands[cmd] and acl[cmd] and acl[cmd].level and (tonumber(acl[cmd].level) or 0) <= ircGetUserLevel(source,channel) then
50+
if commands[cmd] and acl[cmd] and acl[cmd].level and (tonumber(acl[cmd].level) or 0) <= (tonumber(ircGetUserLevel(source,channel)) or 0) then
5151
if ircIsCommandEchoChannelOnly(cmd) then
5252
if ircIsEchoChannel(channel) then
5353
commands[cmd](ircGetChannelServer(channel),channel,source,unpack(args))

0 commit comments

Comments
 (0)