2000-01-18 06:32:43 +03:00
|
|
|
/* -*- 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
|
2001-07-02 08:36:29 +04:00
|
|
|
* Chiaki Koufugata, chiaki@mozilla.gr.jp, UI i18n
|
2000-01-18 06:32:43 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
function addCommands(commandObject)
|
|
|
|
{
|
|
|
|
|
|
|
|
function add (name, func, usage, help)
|
|
|
|
{
|
2001-07-02 08:36:29 +04:00
|
|
|
var usage = getMsg (name + "Usage");
|
|
|
|
var help = getMsg(name + "Help");
|
2000-01-18 06:32:43 +03:00
|
|
|
commandObject.add (name, func, usage, help);
|
|
|
|
}
|
2001-03-14 05:35:29 +03:00
|
|
|
|
2001-07-02 08:36:29 +04:00
|
|
|
add ("attach", "onInputAttach");
|
|
|
|
add ("away", "onInputAway");
|
|
|
|
add ("cancel", "onInputCancel");
|
|
|
|
add ("clear", "onInputClear");
|
|
|
|
add ("client", "onInputClient");
|
|
|
|
add ("commands", "onInputCommands");
|
|
|
|
add ("ctcp", "onInputCTCP");
|
2001-08-24 01:30:40 +04:00
|
|
|
add ("css", "onInputCSS");
|
2001-07-02 08:36:29 +04:00
|
|
|
add ("delete", "onInputDelete");
|
|
|
|
add ("deop", "onInputDeop");
|
|
|
|
add ("desc", "onInputDesc");
|
|
|
|
add ("devoice", "onInputDevoice");
|
|
|
|
add ("disconnect", "onInputQuit");
|
|
|
|
add ("echo", "onInputEcho");
|
|
|
|
add ("eval", "onInputEval");
|
|
|
|
add ("exit", "onInputExit");
|
|
|
|
add ("help", "onInputHelp");
|
|
|
|
add ("hide", "onInputHide");
|
|
|
|
add ("infobar", "onInputInfobar");
|
|
|
|
add ("invite", "onInputInvite");
|
|
|
|
add ("join", "onInputJoin");
|
|
|
|
add ("kick", "onInputKick");
|
|
|
|
add ("leave", "onInputLeave");
|
|
|
|
add ("list", "onInputSimpleCommand");
|
|
|
|
add ("me", "onInputMe");
|
|
|
|
add ("msg", "onInputMsg");
|
|
|
|
add ("name", "onInputName");
|
|
|
|
add ("names", "onInputNames");
|
|
|
|
add ("network", "onInputNetwork");
|
|
|
|
add ("networks", "onInputNetworks");
|
|
|
|
add ("nick", "onInputNick");
|
|
|
|
add ("notify", "onInputNotify");
|
|
|
|
add ("op", "onInputOp");
|
|
|
|
add ("part", "onInputLeave");
|
2001-08-24 01:30:40 +04:00
|
|
|
add ("ping", "onInputPing");
|
2001-07-02 08:36:29 +04:00
|
|
|
add ("query", "onInputQuery");
|
|
|
|
add ("quit", "onInputExit");
|
|
|
|
add ("quote", "onInputQuote");
|
|
|
|
add ("server", "onInputServer");
|
|
|
|
add ("stalk", "onInputStalk");
|
|
|
|
add ("status", "onInputStatus");
|
|
|
|
add ("statusbar", "onInputStatusbar");
|
|
|
|
add ("testdisplay", "onInputTestDisplay");
|
|
|
|
add ("topic", "onInputTopic");
|
2001-08-24 01:30:40 +04:00
|
|
|
add ("tabstrip", "onInputTabstrip");
|
2001-07-02 08:36:29 +04:00
|
|
|
add ("unstalk", "onInputUnstalk");
|
2001-08-24 01:30:40 +04:00
|
|
|
add ("version", "onInputVersion");
|
2001-07-02 08:36:29 +04:00
|
|
|
add ("voice", "onInputVoice");
|
|
|
|
add ("who", "onInputSimpleCommand");
|
|
|
|
add ("whois", "onInputWhoIs");
|
-- CHATZILLA CHANGES ONLY --
checking in patch from Josh Gough, <exv@randomc.com>
muchas gracias!
irc.js
add whois, invite
utils.js
added map and mapObjFunc
chatzilla.xul
add cntxt menu for userlist
commands.js
hook up /away, op, deop, voice, devoice, echo, invite, and kick commands
hadlers.js
onload hack
whois, away, deop, op, voice, devoice, echo, invite, kick command implementations
static.js
more of the onload hack
addEventListener on toolbuttons
listbox.js
selection code
chatzilla.css
selicted list item style
2000-04-24 04:40:56 +04:00
|
|
|
|
2000-01-18 06:32:43 +03:00
|
|
|
}
|
-- CHATZILLA CHANGES ONLY --
checking in patch from Josh Gough, <exv@randomc.com>
muchas gracias!
irc.js
add whois, invite
utils.js
added map and mapObjFunc
chatzilla.xul
add cntxt menu for userlist
commands.js
hook up /away, op, deop, voice, devoice, echo, invite, and kick commands
hadlers.js
onload hack
whois, away, deop, op, voice, devoice, echo, invite, kick command implementations
static.js
more of the onload hack
addEventListener on toolbuttons
listbox.js
selection code
chatzilla.css
selicted list item style
2000-04-24 04:40:56 +04:00
|
|
|
|