mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 19:06:38 +02:00
- Changed IRCCommand::friend into IRCCommand::partner
This commit is contained in:
+3
-3
@@ -58,12 +58,12 @@ Command *CommandAdd(Module *module, char *cmd, char *tok, int (*func)(), unsigne
|
||||
command->cmd->owner = module;
|
||||
if (tok) {
|
||||
command->tok = add_Command_backend(tok,func,params,1,flags);
|
||||
command->cmd->friend = command->tok;
|
||||
command->tok->friend = command->cmd;
|
||||
command->cmd->partner = command->tok;
|
||||
command->tok->partner = command->cmd;
|
||||
command->tok->owner = module;
|
||||
}
|
||||
else
|
||||
command->cmd->friend = NULL;
|
||||
command->cmd->partner = NULL;
|
||||
if (module) {
|
||||
ModuleObject *cmdobj = (ModuleObject *)MyMallocEx(sizeof(ModuleObject));
|
||||
cmdobj->object.command = command;
|
||||
|
||||
Reference in New Issue
Block a user