]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands/cmd_who.h
Add fixes to stop people changing the SID of a live server - certain configuration...
[user/henk/code/inspircd.git] / include / commands / cmd_who.h
index e0f6f61c6b2b20dd5ec55db82bcdeb3a303ebd04..87ea44449d08dd8ad7fad7cdc534cb2406de4a2a 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -24,7 +24,7 @@
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_who : public Command
+class CommandWho : public Command
 {
        bool CanView(Channel* chan, User* user);
        bool opt_viewopersonly;
@@ -41,7 +41,7 @@ class cmd_who : public Command
  public:
        /** Constructor for who.
         */
-       cmd_who (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
+       CommandWho (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
        void SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector<std::string> &whoresults);
        /** Handle command.
         * @param parameters The parameters to the comamnd
@@ -49,7 +49,7 @@ class cmd_who : public Command
         * @param user The user issuing the command
         * @return A value from CmdResult to indicate command success or failure.
         */
-       CmdResult Handle(const char** parameters, int pcnt, User *user);
+       CmdResult Handle(const char* const* parameters, int pcnt, User *user);
        bool whomatch(User* user, const char* matchtext);
 };