/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * The contents of this file are subject to the Mozilla Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is JSIRC Test Client #3 * * The Initial Developer of the Original Code is New Dimensions Consulting, * Inc. Portions created by New Dimensions Consulting, Inc. are * Copyright (C) 1999 New Dimenstions Consulting, Inc. All * Rights Reserved. * * Contributor(s): * * * Contributor(s): * Robert Ginda, rginda@ndcico.com, original author */ function addCommands(commandObject) { function add (name, func, usage, help) { commandObject.add (name, func, usage, help); } add ("help", "onInputHelp", "[]", "Displays help on all commands matching , if " + " is not given, displays help on all commands"); add ("testdisplay", "onInputTestDisplay", "", "Displays a sample text. Used to preview styles"); add ("network", "onInputNetwork", "", "Sets the current network to "); add ("server", "onInputServer", " []", "Connects to server on , or 6667 if " + " is not specified."); add ("quit", "onInputQuit", "[]", "Disconnects from the server represented by the active view when " + "the command is executed providing the reason " + "or the default reason if is not specified."); add ("exit", "onInputExit", "[]", "Disconnects from all active servers and networks, providing the " + "reason , or the default reason if is not " + "specified. Exits ChatZilla after disconnecting."); add ("clear", "onInputClear", "", "Clear the current viewport, discarding *all* content."); add ("delete", "onInputDelete", "", "Clear the current viewport, discarding *all* content, and drop it's " + "icon from the toolbar."); add ("hide", "onInputHide", "", "Drop the current view's icon from the toolbar, but save it's " + "contents. The icon will reappear the next time there is activity " + "on the view."); add ("names", "onInputNames", "", "Toggles the visibility of the username list."); add ("toolbar", "onInputToolbar", "", "Toggles the visibility of the channel toolbar."); add ("statusbar", "onInputStatusbar", "", "Toggles the visibility of the status bar."); add ("commands", "onInputCommands", "[]", "Lists all command names matching , or all command names " + "if pattern is not specified."); add ("attach", "onInputAttach", "[]", "Attaches to the network specified by , " + "or the current network, if no network is specified."); add ("me", "onInputMe", "", "Performs an 'action' on the current channel."); add ("msg", "onInputMsg", " ", "Sends a private message to the user ."); add ("nick", "onInputNick", "", "Changes your current nickname."); add ("name", "onInputName", "", "Changes the username displayed before your hostmask if the server " + "you're connecting to allows it. Some servers will only trust the " + "username reply from the ident service. You must specify this " + "*before* connecting to the network."); add ("desc", "onInputDesc", "", "Changes the 'ircname' line returned when someone performs a /whois " + "on you. You must specify this *before* connecting to the network."); add ("quote", "onInputQuote", "", "Sends a raw command to the IRC server, not a good idea if you " + "don't know what you're doing. see IRC 1459 " + "( http://www.irchelp.org/irchelp/rfc1459.html ) for complete " + "details."); add ("eval", "onInputEval", "