/* $ModDesc: Provides support for GLOBOPS and user mode +g */
-
-
+/** Handle /GLOBOPS
+ */
class cmd_globops : public command_t
{
public:
syntax = "<any-text>";
}
- void Handle (const char** parameters, int pcnt, userrec *user)
+ CmdResult Handle (const char** parameters, int pcnt, userrec *user)
{
std::string line = "From " + std::string(user->nick) + ": ";
for (int i = 0; i < pcnt; i++)
line = line + std::string(parameters[i]) + " ";
}
ServerInstance->SNO->WriteToSnoMask('g',line);
+
+ return CMD_SUCCESS;
}
};
virtual Version GetVersion()
{
- return Version(1,0,0,1,VF_VENDOR);
+ return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
}
void Implements(char* List)