Bug 165332 - Better error messages when joining a channel fails.

r=samuel@sieb.net
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-03-10 04:32:15 +00:00
Родитель 07e40d9b68
Коммит 681d35d8d2
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -606,6 +606,15 @@ function my_unknown (e)
{ {
e.params.shift(); /* remove the code */ e.params.shift(); /* remove the code */
e.params.shift(); /* and the dest. nick (always me) */ e.params.shift(); /* and the dest. nick (always me) */
// Handle random IRC numerics automatically.
var msg = getMsg("msg.err.irc." + e.code, null, "");
if (msg)
{
this.display(msg);
return;
}
/* if it looks like some kind of "end of foo" code, and we don't /* if it looks like some kind of "end of foo" code, and we don't
* already have a mapping for it, make one up */ * already have a mapping for it, make one up */
var length = e.params.length; var length = e.params.length;

Просмотреть файл

@ -447,6 +447,12 @@ msg.err.no.match = No match for ``%S''
msg.err.no.socket = Error creating socket msg.err.no.socket = Error creating socket
msg.err.exhausted = Connection attempts exhausted, giving up. msg.err.exhausted = Connection attempts exhausted, giving up.
# Better IRC error messages
msg.err.irc.471 = This channel has reached it's set capacity; you connot join it.
msg.err.irc.473 = This channel is invite-only. You must have an invite from an existing member of the channel to join.
msg.err.irc.474 = You are banned from this channel.
msg.err.irc.475 = This channel needs a key. You must provide the correct key to join the channel. See "/help join" for details on joining a channel with a key.
msg.warn.unk.command = Unknown command ``%S'', just guessing. msg.warn.unk.command = Unknown command ``%S'', just guessing.
msg.val.on = on msg.val.on = on