home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / ghostzilla_hit / files / ghostzilla-1.0-plus-install.exe / chrome / chatzilla.jar / content / chatzilla / commands.js < prev    next >
Encoding:
JavaScript  |  2002-04-09  |  3.1 KB  |  95 lines

  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2.  *
  3.  * The contents of this file are subject to the Mozilla Public
  4.  * License Version 1.1 (the "License"); you may not use this file
  5.  * except in compliance with the License. You may obtain a copy of
  6.  * the License at http://www.mozilla.org/MPL/
  7.  *
  8.  * Software distributed under the License is distributed on an "AS
  9.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.  * implied. See the License for the specific language governing
  11.  * rights and limitations under the License.
  12.  *
  13.  * The Original Code is JSIRC Test Client #3
  14.  *
  15.  * The Initial Developer of the Original Code is New Dimensions Consulting,
  16.  * Inc. Portions created by New Dimensions Consulting, Inc. are
  17.  * Copyright (C) 1999 New Dimenstions Consulting, Inc. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s): 
  21.  *
  22.  *
  23.  * Contributor(s):
  24.  *  Robert Ginda, rginda@ndcico.com, original author
  25.  *  Chiaki Koufugata, chiaki@mozilla.gr.jp, UI i18n
  26.  */
  27.  
  28. function addCommands(commandObject)
  29. {
  30.  
  31.     function add (name, func)
  32.     {
  33.         var usage = getMsg (name + "Usage");
  34.         var help = getMsg(name + "Help");
  35.         commandObject.add (name, func, usage, help);
  36.     }
  37.     
  38.     add ("about", "onInputAbout");
  39.     add ("attach", "onInputAttach");
  40.     add ("away", "onInputAway");
  41.     add ("cancel", "onInputCancel");
  42.     add ("charset", "onInputCharset");
  43.     add ("clear", "onInputClear");
  44.     add ("client", "onInputClient");
  45.     add ("commands", "onInputCommands");
  46.     add ("ctcp", "onInputCTCP");
  47.     add ("css", "onInputCSS");
  48.     add ("delete", "onInputDelete");
  49.     add ("deop", "onInputDeop");
  50.     add ("desc", "onInputDesc");
  51.     add ("devoice", "onInputDevoice");
  52.     add ("disconnect", "onInputQuit");
  53.     add ("echo", "onInputEcho");
  54.     add ("eval", "onInputEval");
  55.     add ("exit", "onInputExit");
  56.     add ("help", "onInputHelp");
  57.     add ("headers", "onInputHeaders");
  58.     add ("hide", "onInputHide");
  59.     add ("infobar", "onInputInfobar");
  60.     add ("invite", "onInputInvite"); 
  61.     add ("join", "onInputJoin");
  62.     add ("kick", "onInputKick");
  63.     add ("leave", "onInputLeave");
  64.     add ("list", "onInputSimpleCommand");
  65.     add ("me", "onInputMe");
  66.     add ("msg", "onInputMsg");
  67.     add ("name", "onInputName");
  68.     add ("names", "onInputNames"); 
  69.     add ("network", "onInputNetwork");
  70.     add ("networks", "onInputNetworks");
  71.     add ("nick", "onInputNick");
  72.     add ("notify", "onInputNotify");
  73.     add ("op", "onInputOp");
  74.     add ("part", "onInputLeave");
  75.     add ("ping", "onInputPing");
  76.     add ("query", "onInputQuery"); 
  77.     add ("quit", "onInputExit");
  78.     add ("quote", "onInputQuote");
  79.     add ("server", "onInputServer");
  80.     add ("stalk", "onInputStalk");
  81.     add ("status", "onInputStatus");
  82.     add ("statusbar", "onInputStatusbar");
  83.     add ("testdisplay", "onInputTestDisplay");
  84.     add ("topic", "onInputTopic");
  85.     add ("tabstrip", "onInputTabstrip");
  86.     add ("unstalk", "onInputUnstalk");
  87.     add ("version", "onInputVersion");
  88.     add ("voice", "onInputVoice");
  89.     add ("who", "onInputSimpleCommand");
  90.     add ("whois", "onInputWhoIs");
  91.     add ("whowas", "onInputSimpleCommand");
  92.     
  93. }
  94.  
  95.