From bcad8222b2d1e9d71124212d1208c6165ac5c4be Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 May 2007 12:33:04 +0000 Subject: 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 --- src/modules/m_auditorium.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) -- cgit v1.2.3