1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-18 18:50:23 +02:00

Updated chatlog mods : invalid commands are hidden

- From now on, invalid commands are hidden when launched, like in
  realchat.
NOTE: The update have been checked with git diff : no differencies, the
mod have never been changed by us.
This commit is contained in:
LeMagnesium 2015-01-17 22:18:52 +01:00
parent 69bd6f3445
commit 105935e44a

View File

@ -135,7 +135,11 @@ function chatplus.register_handler(func,place)
end
end
function chatplus.send(from,msg)
function chatplus.send(from, msg)
if msg:sub(1, 1) == "/" then
return false
end
-- Log chat message
if chatplus.log_handle ~= nil then
chatplus.log_handle:write(