1
0
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:
stskeeps
2007-05-14 13:41:57 +00:00
parent 2c7a3f2e66
commit 69095eb401
5 changed files with 21 additions and 19 deletions
+3 -3
View File
@@ -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;