summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2017-04-21 09:08:14 -0500
committerDavid McMackins II <contact@mcmackins.org>2017-04-21 09:08:14 -0500
commit062adaa6eb3982f418c7434ef7c0499a9055436d (patch)
treef043277bfe93cc6283fc2d3fe96384a5e2537eae
parent774472cc69edec2541873027cd562097622c11ef (diff)
Add TEAM
-rw-r--r--serverthread.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/serverthread.lua b/serverthread.lua
index 59ea381..72abddf 100644
--- a/serverthread.lua
+++ b/serverthread.lua
@@ -151,6 +151,8 @@ function Server:_process()
end
elseif line == 'MAKEROOM' then
self._socks[this]:send(NEGATIVE)
+ elseif line == 'TEAM' then
+ self._socks[this]:send(this .. '\nEND\n')
elseif line:startswith('SELECT') then
if self._turn ~= this then
self._socks[this]:send(NEGATIVE)