1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/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 cmd_who : public command_t
29 bool CanView(chanrec* chan, userrec* user);
30 bool opt_viewopersonly;
31 bool opt_showrealhost;
42 /** Constructor for who.
44 cmd_who (InspIRCd* Instance) : command_t(Instance,"WHO",0,1) { syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [ohurmMiaplf]"; }
45 void SendWhoLine(userrec* user, const std::string &initial, chanrec* ch, userrec* u, std::vector<std::string> &whoresults);
47 * @param parameters The parameters to the comamnd
48 * @param pcnt The number of parameters passed to teh command
49 * @param user The user issuing the command
50 * @return A value from CmdResult to indicate command success or failure.
52 CmdResult Handle(const char** parameters, int pcnt, userrec *user);
53 bool whomatch(userrec* user, const char* matchtext);