Respond to ERR_ERONEOUSNICKNAME
[KiwiIRC.git] / server / irc / commands.js
index 1e07ac837341dc472b6a17d08bfc4796fd121481..d64934ab6ddaf759de6de83bdbf5d382ab5b4bce 100644 (file)
@@ -47,6 +47,7 @@ irc_numerics = {
     '405': 'ERR_TOOMANYCHANNELS',
     '421': 'ERR_UNKNOWNCOMMAND',
     '422': 'ERR_NOMOTD',
+    '432': 'ERR_ERRONEUSNICKNAME',
     '433': 'ERR_NICKNAMEINUSE',
     '441': 'ERR_USERNOTINCHANNEL',
     '442': 'ERR_NOTONCHANNEL',
@@ -716,6 +717,13 @@ handlers = {
         });
     },
 
+    ERR_ERRONEUSNICKNAME: function(command) {
+        this.irc_connection.emit('server ' + this.irc_connection.irc_host.hostname + ' erroneus_nickname', {
+            nick: command.params[1],
+            reason: command.trailing
+        });
+    },
+
     ERR_NOTREGISTERED: function (command) {
     },