diff --git a/doc/irc.luadoc b/doc/irc.luadoc index 44c035e..18fd3b6 100644 --- a/doc/irc.luadoc +++ b/doc/irc.luadoc @@ -141,7 +141,7 @@ function irc:shutdown() --
  • OnKick(channel, nick, kicker, reason)* (kicker is a user table)
  • --
  • OnUserMode(modes)
  • --
  • OnChannelMode(user, channel, modes)
  • ---
  • OnModeChange(user, target, modes)*
  • +--
  • OnModeChange(user, target, modes, ...)* ('...' contains mode options such as banmasks)
  • -- -- * Event also invoked for yourself. -- † Channel passed only when user tracking is enabled diff --git a/handlers.lua b/handlers.lua index 39d6777..74ace38 100644 --- a/handlers.lua +++ b/handlers.lua @@ -130,8 +130,8 @@ handlers["324"] = function(o, prefix, user, channel, modes) o:invoke("OnChannelMode", channel, modes) end -handlers["MODE"] = function(o, prefix, target, modes) - o:invoke("OnModeChange", parsePrefix(prefix), target, modes) +handlers["MODE"] = function(o, prefix, target, modes, ...) + o:invoke("OnModeChange", parsePrefix(prefix), target, modes, ...) end handlers["ERROR"] = function(o, prefix, message)