summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2017-06-25 13:54:09 -0500
committerDavid McMackins II <contact@mcmackins.org>2017-06-25 13:54:09 -0500
commitc83456e1b1cc66e575bf9c4d75c630ee87b368da (patch)
tree236d471f0c63a9be5ae2a0527a209486057f7fd3
parent123fef1939abe022dacc81395e349e66fa0868ad (diff)
Fix some table function calls
-rw-r--r--serverthread.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/serverthread.lua b/serverthread.lua
index 32fe88c..48d78d1 100644
--- a/serverthread.lua
+++ b/serverthread.lua
@@ -158,7 +158,7 @@ function Server:_process()
break
end
- local name = line:concat(' ', 2)
+ local name = table.concat(line, ' ', 2)
if name == self._names[other] then
self._socks[this]:send('ERR NAMETAKEN\nEND\n')
elseif #name > 16 then
@@ -252,8 +252,8 @@ function Server:_process()
self._done = true
return
elseif line == 'UPDATE' then
- self._updatequeue[this]:append('END')
- self._socks[this]:send(self._updatequeue[this]:concat('\n'))
+ table.insert(self._updatequeue[this], 'END')
+ self._socks[this]:send(table.concat(self._updatequeue, '\n'))
self._updatequeue[this] = {}
else
self._socks[this]:send('ERR COMMAND\nEND\n')