summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 12:33:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 12:33:04 +0000
commitbcad8222b2d1e9d71124212d1208c6165ac5c4be (patch)
tree5c34928575cbb5216118596d370668bc316dbe41 /src/modules
parent8f833415a32147da9c8e68d560d3d88ae91b9941 (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.cpp5
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)