Print in-channel IRC commands in-game

This commit is contained in:
ShadowNinja 2014-03-13 21:18:49 -04:00
parent cdc6067e87
commit ea24a7501c
1 changed files with 3 additions and 3 deletions

View File

@ -107,9 +107,9 @@ function mt_irc.hooks.channelChat(user, channel, message)
local foundaction, _, actionnick, actionmessage =
message:find("^%* ([^%s]+) (.*)$")
if mt_irc:check_botcmd(user, channel, message) then
return
elseif message:sub(1, 5) == "[off]" then
mt_irc:check_botcmd(user, channel, message)
if message:sub(1, 5) == "[off]" then
return
elseif foundchat then
mt_irc:sendLocal(("<%s@%s> %s")