diff options
author | David McMackins II <contact@mcmackins.org> | 2017-08-12 15:14:02 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2017-08-12 15:14:02 -0500 |
commit | 38d474634190eee713b38e413dfb2d3dfacb66a6 (patch) | |
tree | 7b379a1dd711c69330d17d47c0d20bde8ed21d75 | |
parent | 716f4b92090de5c2b6c57bd6e185147433ee37fe (diff) |
Don't allow name change while in game
-rw-r--r-- | serverthread.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/serverthread.lua b/serverthread.lua index 790ca94..1e7fb27 100644 --- a/serverthread.lua +++ b/serverthread.lua @@ -282,6 +282,8 @@ function Server:_process() self._socks[this]:send('ERR NAMELEN\nEND\n') elseif name:find('"') then self._socks[this]:send('ERR NAMECHAR\nEND\n') + elseif self._rooms[this] == 1 then + self._socks[this]:send('ERR INGAME\nEND\n') else self._names[this] = name self._socks[this]:send(AFFIRMATIVE) |