forked from minetest-mods/irc
Print in-channel IRC commands in-game
This commit is contained in:
parent
cdc6067e87
commit
ea24a7501c
@ -107,9 +107,9 @@ function mt_irc.hooks.channelChat(user, channel, message)
|
|||||||
local foundaction, _, actionnick, actionmessage =
|
local foundaction, _, actionnick, actionmessage =
|
||||||
message:find("^%* ([^%s]+) (.*)$")
|
message:find("^%* ([^%s]+) (.*)$")
|
||||||
|
|
||||||
if mt_irc:check_botcmd(user, channel, message) then
|
mt_irc:check_botcmd(user, channel, message)
|
||||||
return
|
|
||||||
elseif message:sub(1, 5) == "[off]" then
|
if message:sub(1, 5) == "[off]" then
|
||||||
return
|
return
|
||||||
elseif foundchat then
|
elseif foundchat then
|
||||||
mt_irc:sendLocal(("<%s@%s> %s")
|
mt_irc:sendLocal(("<%s@%s> %s")
|
||||||
|
Loading…
Reference in New Issue
Block a user