mudgangster

Log | Files | Refs

commit 2c7198b6ce4e448af64a01cfd1c116e8e0bc7b3f
parent c36561bf6995c945960318640ac733caa0cfbbe2
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue, 21 Oct 2014 12:20:45 +0100

Add mud.chatns

Diffstat:
chat.lua | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/chat.lua b/chat.lua @@ -98,8 +98,8 @@ local function dataHandler( client, loop, watcher ) mud.handleXEvents() end -function mud.chat( form, ... ) - local named = "\nHirve " .. form:format( ... ) +function mud.chatns( form, ... ) + local named = "\nHirve" .. form:format( ... ) local data = CommandBytes.all .. named:parseColours() .. "\n\255" for _, client in ipairs( Clients ) do @@ -112,6 +112,10 @@ function mud.chat( form, ... ) handleChat() end +function mud.chat( form, ... ) + mud.chatns( " " .. form, ... ) +end + local function call( address, port ) mud.print( "\n#s> Calling %s:%d...", address, port )