1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2009 InspIRCd Development Team
6 * See: http://wiki.inspircd.org/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
17 // include the common header files
22 /** Handle /WHO. These command handlers can be reloaded by the core,
23 * and handle basic RFC1459 commands. Commands within modules work
24 * the same way, however, they can be fully unloaded, where these
27 class CommandWho : public Command
29 bool CanView(Channel* chan, User* user);
30 bool opt_viewopersonly;
31 bool opt_showrealhost;
44 /** Constructor for who.
46 CommandWho (InspIRCd* Instance) : Command(Instance,"WHO", 0, 1, false, 2) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
47 void SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector<std::string> &whoresults);
49 * @param parameters The parameters to the comamnd
50 * @param pcnt The number of parameters passed to teh command
51 * @param user The user issuing the command
52 * @return A value from CmdResult to indicate command success or failure.
54 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
55 bool whomatch(User* user, const char* matchtext);