diff options
author | David McMackins II <contact@mcmackins.org> | 2017-03-22 12:10:41 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2017-03-22 12:10:41 -0500 |
commit | 888acf555172deddd8f15e216c8f3036b4fc246b (patch) | |
tree | 9e119705913e3744e41dec4414093e4f311e5367 | |
parent | 764c8da1e93a00650df7830752cb07b8abcd04af (diff) |
Add MAKEROOM
-rw-r--r-- | serverthread.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/serverthread.lua b/serverthread.lua index 5974e95..ef5d815 100644 --- a/serverthread.lua +++ b/serverthread.lua @@ -24,6 +24,7 @@ local socket = require 'socket' local finished = false local AFFIRMATIVE = 'Y\nEND\n' +local NEGATIVE = 'N\nEND\n' local ERR_ARGNUM = 'ERR ARGNUM\nEND\n' Server = class() @@ -147,6 +148,8 @@ function Server:_process() self._socks[other]:send('FOE "' .. self._names[this] .. '"\nEND\n') end + elseif line == 'MAKEROOM' then + self._socks[this]:send(NEGATIVE) else self._socks[this]:send('ERR COMMAND\nEND\n') end |