diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 1dd84ef5d..8415a3bf4 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -407,7 +407,7 @@ void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool server } else { - WriteServ("MODE %s %s",targetuser->nick,output_sequence.c_str()); + WriteServ(targetuser->fd,"MODE %s %s",targetuser->nick,output_sequence.c_str()); } } else @@ -420,7 +420,7 @@ void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool server } else { - WriteTo(targetuser->fd,user,"MODE %s %s",targetuser->nick,output_sequence.c_str()); + WriteTo(user,targetuser,"MODE %s %s",targetuser->nick,output_sequence.c_str()); FOREACH_MOD(I_OnMode,OnMode(user, targetuser, TYPE_USER, output_sequence)); } } |