diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 18:07:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 18:07:26 +0000 |
commit | 1beedda4973acac7aa8effaf1460ad9079284e89 (patch) | |
tree | 17736ad4dea31f0bfde4394e3747867fee8312db /src | |
parent | fc9e00f49299cb3b402406b5f185d5f4af1e9780 (diff) |
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
Diffstat (limited to 'src')
-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)); + } } } } |