diff options
-rw-r--r-- | src/mode.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 6f212bdad..1dd84ef5d 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -405,6 +405,10 @@ void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool server { WriteChannelWithServ(Config->ServerName,targetchannel,"MODE %s %s%s",targetchannel->name,output_sequence.c_str(),parameter_list.str().c_str()); } + else + { + WriteServ("MODE %s %s",targetuser->nick,output_sequence.c_str()); + } } else { @@ -414,6 +418,11 @@ void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool server WriteChannel(targetchannel,user,"MODE %s %s%s",targetchannel->name,output_sequence.c_str(),parameter_list.str().c_str()); FOREACH_MOD(I_OnMode,OnMode(user, targetchannel, TYPE_CHANNEL, output_sequence + parameter_list.str())); } + else + { + WriteTo(targetuser->fd,user,"MODE %s %s",targetuser->nick,output_sequence.c_str()); + FOREACH_MOD(I_OnMode,OnMode(user, targetuser, TYPE_USER, output_sequence)); + } } } } |