diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 12:33:04 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 12:33:04 +0000 |
commit | bcad8222b2d1e9d71124212d1208c6165ac5c4be (patch) | |
tree | 5c34928575cbb5216118596d370668bc316dbe41 /src/modules | |
parent | 8f833415a32147da9c8e68d560d3d88ae91b9941 (diff) |
Do the same for KICK, but in the case of KICK, send to the user doing the kick AND the user being kicked only
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6864 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_auditorium.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 67670134e..1538c202b 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -117,7 +117,12 @@ class ModuleAuditorium : public Module void OnUserKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason, bool &silent) { if (chan->IsModeSet('u')) + { silent = true; + /* Send silenced event only to the user being kicked and the user doing the kick */ + source->WriteFrom(source, "KICK %s %s %s", channel->name, user->nick, reason.c_str()); + user->WriteFrom(source, "KICK %s %s %s", channel->name, user->nick, reason.c_str()); + } } void OnUserQuit(userrec* user, const std::string &reason, const std::string &oper_message) |