Bug 476413 - fix display of welcome/help text when re-opening /client.

ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@258836 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk 2009-11-01 15:50:58 +00:00
parent bd055a1e23
commit 88673f4ab7
2 changed files with 6 additions and 8 deletions

View File

@ -985,7 +985,6 @@ msg.all.commands = Currently implemented commands are [%S].
msg.help.intro = Help is available from many places:\n - |/commands| lists all the built-in commands in ChatZilla. Use |/help <command-name>| to get help on individual commands.\n - The IRC Help website <http://www.irchelp.org/> provides introductory material for new IRC users. \n - The ChatZilla website <http://chatzilla.hacksrus.com/> provides more information about IRC and ChatZilla, including the ChatZilla FAQ <http://chatzilla.hacksrus.com/faq>, which answers many common questions about using ChatZilla. msg.help.intro = Help is available from many places:\n - |/commands| lists all the built-in commands in ChatZilla. Use |/help <command-name>| to get help on individual commands.\n - The IRC Help website <http://www.irchelp.org/> provides introductory material for new IRC users. \n - The ChatZilla website <http://chatzilla.hacksrus.com/> provides more information about IRC and ChatZilla, including the ChatZilla FAQ <http://chatzilla.hacksrus.com/faq>, which answers many common questions about using ChatZilla.
msg.about.version = "%S [[Details][Opens the about dialog for more details][%S]] msg.about.version = "%S [[Details][Opens the about dialog for more details][%S]]
msg.about.homepage = Please visit the ChatZilla homepage at <http://chatzilla.hacksrus.com/> for more information. msg.about.homepage = Please visit the ChatZilla homepage at <http://chatzilla.hacksrus.com/> for more information.
msg.client.opened = JavaScript console for ``*client*'' opened.
msg.newnick.you = YOU are now known as %S msg.newnick.you = YOU are now known as %S
msg.newnick.notyou = "%S is now known as %S msg.newnick.notyou = "%S is now known as %S
msg.view.hidden = "%S (hidden) msg.view.hidden = "%S (hidden)

View File

@ -3393,16 +3393,15 @@ function cmdKnock(e)
function cmdClient(e) function cmdClient(e)
{ {
dispatch("create-tab-for-view", { view: client }); if (!("messages" in client))
if (!client.messages)
{ {
client.display(MSG_CLIENT_OPENED);
dispatch("set-current-view", { view: client });
client.display(MSG_WELCOME, "HELLO"); client.display(MSG_WELCOME, "HELLO");
dispatch("set-current-view", { view: client });
dispatch("help", { hello: true });
dispatch("networks"); dispatch("networks");
dispatch("commands"); }
} else { else
{
dispatch("set-current-view", { view: client }); dispatch("set-current-view", { view: client });
} }
} }