Software /
code /
prosody-modules
Comparison
mod_ircd/mod_ircd.lua @ 236:24582ea48471
mod_ircd: Fix "nickname in use" reply
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 05 Aug 2010 22:23:08 +0100 |
parent | 212:16b76c7b6316 |
child | 276:27c652363874 |
comparison
equal
deleted
inserted
replaced
235:10a3cca32797 | 236:24582ea48471 |
---|---|
52 end | 52 end |
53 | 53 |
54 function commands.NICK(session, nick) | 54 function commands.NICK(session, nick) |
55 nick = nick:match("^[%w_]+"); | 55 nick = nick:match("^[%w_]+"); |
56 if nicks[nick] then | 56 if nicks[nick] then |
57 session.send(":"..session.host.." 433 * The nickname "..nick.." is already in use"); | 57 session.send(":"..session.host.." 433 * "..nick.." :The nickname "..nick.." is already in use"); |
58 return; | 58 return; |
59 end | 59 end |
60 nicks[nick] = session; | 60 nicks[nick] = session; |
61 session.nick = nick; | 61 session.nick = nick; |
62 session.full_jid = nick.."@"..module.host.."/ircd"; | 62 session.full_jid = nick.."@"..module.host.."/ircd"; |