From 1beedda4973acac7aa8effaf1460ad9079284e89 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 8 Jul 2006 18:07:26 +0000 Subject: Add code to display umode changes when they occur git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4179 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mode.cpp') 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)); + } } } } -- cgit v1.2.3