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 * ---------------------------------------------------
16 class CommandMap : public Command
19 /** Constructor for map.
21 CommandMap ( Module* parent) : Command(parent,"MAP",0,0) { Penalty=2; }
23 * @param parameters The parameters to the comamnd
24 * @param pcnt The number of parameters passed to teh command
25 * @param user The user issuing the command
26 * @return A value from CmdResult to indicate command success or failure.
28 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
33 CmdResult CommandMap::Handle (const std::vector<std::string>&, User *user)
35 // as with /LUSERS this does nothing without a linking
36 // module to override its behaviour and display something
41 user->WriteNumeric(006, "%s :%s [%s]", user->nick.c_str(), ServerInstance->Config->ServerName.c_str(), ServerInstance->Config->GetSID().c_str());
42 user->WriteNumeric(007, "%s :End of /MAP", user->nick.c_str());
45 user->WriteNumeric(006, "%s :%s",user->nick.c_str(),ServerInstance->Config->ServerName.c_str());
46 user->WriteNumeric(007, "%s :End of /MAP",user->nick.c_str());
51 COMMAND_INIT(CommandMap)