Bug 495363 - Eat exceptions from ident.addNetwork (and display warning) instead of breaking auto-perform.

ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@258200 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk
2009-08-22 16:28:04 +00:00
parent a62fff53ef
commit 5a7bb67a4c

View File

@@ -1926,10 +1926,18 @@ function my_sconnect (e)
if (this.prefs["identd.enabled"])
{
if (jsenv.HAS_SERVER_SOCKETS)
client.ident.addNetwork(this, e.server);
else
try
{
if (jsenv.HAS_SERVER_SOCKETS)
client.ident.addNetwork(this, e.server);
else
display(MSG_IDENT_SERVER_NOT_POSSIBLE, MT_WARN);
}
catch (ex)
{
display(MSG_IDENT_SERVER_NOT_POSSIBLE, MT_WARN);
dd(formatException(ex));
}
}
this.NICK_RETRIES = this.prefs["nicknameList"].length + 3;