|
|||
|
|||
|
Inheritance diagram for cmd_globops:


Public Member Functions | |
| cmd_globops (InspIRCd *Instance) | |
| CmdResult | Handle (const char **parameters, int pcnt, userrec *user) |
| Handle the command from a user. | |
Definition at line 25 of file m_globops.cpp.
|
|
Definition at line 28 of file m_globops.cpp. References command_t::source, and command_t::syntax. 00028 : command_t(Instance,"GLOBOPS",'o',1) 00029 { 00030 this->source = "m_globops.so"; 00031 syntax = "<any-text>"; 00032 }
|
|
||||||||||||||||
|
Handle the command from a user.
Implements command_t. Definition at line 34 of file m_globops.cpp. References CMD_SUCCESS, userrec::nick, command_t::ServerInstance, InspIRCd::SNO, and SnomaskManager::WriteToSnoMask(). 00035 { 00036 std::string line = "From " + std::string(user->nick) + ": "; 00037 for (int i = 0; i < pcnt; i++) 00038 { 00039 line = line + std::string(parameters[i]) + " "; 00040 } 00041 ServerInstance->SNO->WriteToSnoMask('g',line); 00042 00043 /* route it (ofc :p) */ 00044 return CMD_SUCCESS; 00045 }
|