X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=server%2Firc%2Fcommands.js;h=1678b726ee4bdd80f52e05bd7c3d26fbebe5bfe5;hb=ebe178d6ee5515c04e20c102c00675a38350ca0e;hp=9f32251d9b468ffebf37f5bb6f45cf376149c59e;hpb=28ce8b75e6c41742239a2025c5d97c024186a989;p=KiwiIRC.git diff --git a/server/irc/commands.js b/server/irc/commands.js index 9f32251..1678b72 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -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],