mudgangster

Log | Files | Refs

commit 3e81ad913419244af0a4c6c5517608bdb8ffde75
parent 2a9fbad6d7e8b0d34fbfb9cf921f06649de47f47
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat,  1 Aug 2015 17:02:57 +0200

Add /hang command

Diffstat:
chat.lua | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/chat.lua b/chat.lua @@ -173,6 +173,16 @@ mud.alias( "/call", { [ "^(%S+)[%s:]+(%d+)$" ] = call, }, "<address> [port]" ) +mud.alias( "/hang", { + [ "^(%S+)$" ] = function( name ) + local client = clientFromName( name ) + + if client then + client:kill() + end + end, +} ) + local function sendPM( client, message ) local named = "\nHirve chats to you, '" .. message .. "'" local data = CommandBytes.pm .. named .. "\n\255"