Bug 189097 - Show user's nickname in own join/part messages.

r=rginda
a=asa
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-04-21 17:59:37 +00:00
Родитель ba283dc671
Коммит 6e17b13ccb
2 изменённых файлов: 14 добавлений и 13 удалений

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

@ -1946,7 +1946,8 @@ function my_cjoin (e)
if (userIsMe(e.user))
{
this.display (getMsg(MSG_YOU_JOINED, e.channel.unicodeName), "JOIN",
var params = [e.user.unicodeName, e.channel.unicodeName];
this.display (getMsg(MSG_YOU_JOINED, params), "JOIN",
e.server.me, this);
if (client.globalHistory)
client.globalHistory.addPage(this.getURL());
@ -1993,8 +1994,8 @@ function my_cpart (e)
if (userIsMe (e.user))
{
this.display (getMsg(MSG_YOU_LEFT, e.channel.unicodeName), "PART",
e.user, this);
var params = [e.user.unicodeName, e.channel.unicodeName];
this.display (getMsg(MSG_YOU_LEFT, params), "PART", e.user, this);
if (client.currentObject == this)
/* hide the tree while we remove (possibly tons) of nodes */
@ -2046,15 +2047,15 @@ function my_ckick (e)
if (e.user)
{
this.display (getMsg(MSG_YOURE_GONE,
[e.channel.unicodeName, e.user.unicodeName,
e.reason]),
[e.lamer.unicodeName, e.channel.unicodeName,
e.user.unicodeName, e.reason]),
"KICK", e.user, this);
}
else
{
this.display (getMsg(MSG_YOURE_GONE,
[e.channel.unicodeName, MSG_SERVER,
e.reason]),
[e.lamer.unicodeName, e.channel.unicodeName,
MSG_SERVER, e.reason]),
"KICK", (void 0), this);
}
@ -2154,8 +2155,8 @@ function my_cquit (e)
if (userIsMe(e.user))
{
/* I dont think this can happen */
this.display (getMsg(MSG_YOU_QUIT, [e.server.parent.unicodeName, e.reason]),
"QUIT", e.user, this);
var pms = [e.user.unicodeName, e.server.parent.unicodeName, e.reason];
this.display (getMsg(MSG_YOU_QUIT, pms),"QUIT", e.user, this);
}
else
{

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

@ -986,12 +986,12 @@ msg.topic = Topic for %S is ``%S''
msg.no.topic = No topic for channel %S"
msg.topic.date = Topic for %S was set by %S on %S"
msg.you.joined = YOU have joined %S"
msg.you.joined = YOU (%S) have joined %S"
msg.someone.joined = "%S (%S@%S) has joined %S"
msg.you.left = YOU have left %S"
msg.you.left = YOU (%S) have left %S"
msg.someone.left = "%S has left %S"
msg.someone.left.reason = "%S has left %S (%S)
msg.youre.gone = YOU have been booted from %S by %S (%S)
msg.youre.gone = YOU (%S) have been booted from %S by %S (%S)
msg.someone.gone = "%S was booted from %S by %S (%S)
msg.mode.changed = Mode %S by %S"
@ -999,7 +999,7 @@ msg.mode.changed = Mode %S by %S"
msg.away.on = You are now marked as away (%S).
msg.away.off = You are no longer marked as away.
msg.you.quit = YOU have left %S (%S)
msg.you.quit = YOU (%S) have left %S (%S)
msg.someone.quit = "%S has left %S (%S)
msg.unknown.ctcp = Unknown CTCP %S (%S) from %S"