ERR_PASSWORDMISMATCH; IrcServer disposing
[KiwiIRC.git] / server / irc / commands.js
index 9f32251d9b468ffebf37f5bb6f45cf376149c59e..1678b726ee4bdd80f52e05bd7c3d26fbebe5bfe5 100644 (file)
@@ -45,6 +45,7 @@ var irc_numerics = {
     ERR_NICKNAMEINUSE:      '433',
     ERR_USERNOTINCHANNEL:   '441',
     ERR_NOTONCHANNEL:       '442',
+    ERR_PASSWDMISMATCH:     '464',
     ERR_NOTREGISTERED:      '451',
     ERR_LINKCHANNEL:        '470',
     ERR_CHANNELISFULL:      '471',
@@ -570,6 +571,9 @@ var listeners = {
             reason: command.trailing
         });
     },
+    ERR_PASSWDMISMATCH: function (command) {
+        this.irc_connection.emit('server:' + this.irc_connection.irc_host.hostname + ':password_mismatch', {});
+    },
     ERR_LINKCHANNEL: function (command) {
         this.irc_connection.emit('server:' + this.irc_connection.irc_host.hostname + ':channel_redirect', {
             from: command.params[1],