1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 01:23:13 +02:00

- Remove token parameter from CommandAdd().

This commit is contained in:
William Pitcock
2013-05-19 21:27:26 +00:00
parent 5238ce7df6
commit ca86485927
107 changed files with 130 additions and 131 deletions
+2 -3
View File
@@ -39,10 +39,10 @@ int CommandExists(char *name)
return 0;
}
Command *CommandAdd(Module *module, char *cmd, char *tok, int (*func)(), unsigned char params, int flags) {
Command *CommandAdd(Module *module, char *cmd, int (*func)(), unsigned char params, int flags) {
Command *command;
if (find_Command_simple(cmd) || (tok && find_Command_simple(tok)))
if (find_Command_simple(cmd))
{
if (module)
module->errorcode = MODERR_EXISTS;
@@ -50,7 +50,6 @@ Command *CommandAdd(Module *module, char *cmd, char *tok, int (*func)(), unsigne
}
command = MyMallocEx(sizeof(Command));
command->cmd = add_Command_backend(cmd,func,params, flags);
command->tok = NULL;
command->cmd->owner = module;
command->cmd->friend = NULL;
if (module) {