Bug 349268 - Replace spaces with underscores more consistently in nickname handling. ChatZilla only. r=silver p=mitch_1_2@live.com.au

git-svn-id: svn://10.0.0.236/trunk@250428 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk 2008-04-18 02:55:50 +00:00
parent 552db82e1a
commit 498dc242b4
3 changed files with 4 additions and 3 deletions

View File

@ -763,8 +763,8 @@ function serv_flush()
CIRCServer.prototype.login =
function serv_login(nick, name, desc)
{
nick = nick.replace(" ", "_");
name = name.replace(" ", "_");
nick = nick.replace(/ /g, "_");
name = name.replace(/ /g, "_");
if (!nick)
nick = "nick";

View File

@ -2189,6 +2189,7 @@ function cmdNick(e)
e.nickname = prompt(MSG_NICK_PROMPT, curNick);
if (e.nickname == null)
return;
e.nickname = e.nickname.replace(/ /g, "_");
}
if (e.server)

View File

@ -116,7 +116,7 @@ function initPrefs()
var nick = en.get(vars[i]);
if (nick)
{
defaultNick = nick;
defaultNick = nick.replace(/ /g, "_");
break;
}
}