mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01: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:
parent
20aa788dd6
commit
3c81d35a59
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user