]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
If an op parts, joins or kicks then display the change to all, so that the non-opped...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 4 May 2007 17:21:44 +0000 (17:21 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 4 May 2007 17:21:44 +0000 (17:21 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6879 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_auditorium.cpp

index d08ef1060d7fe8bc490f6d2446402b98e970c8d2..c49391d2f438f6d2d413d53864ebe8b86930253d 100644 (file)
@@ -130,7 +130,7 @@ class ModuleAuditorium : public Module
                        /* Because we silenced the event, make sure it reaches the user whos joining (but only them of course) */
                        user->WriteFrom(user, "JOIN %s", channel->name);
                        if (ShowOps)
-                               channel->WriteAllExcept(user, false, '@', except_list, "JOIN %s", channel->name);
+                               channel->WriteAllExcept(user, false, channel->GetStatus(user) >= STATUS_OP ? 0 : '@', except_list, "JOIN %s", channel->name);
                }
        }
 
@@ -144,8 +144,10 @@ class ModuleAuditorium : public Module
                                        partmessage.empty() ? "" : " :",
                                        partmessage.empty() ? "" : partmessage.c_str());
                        if (ShowOps)
-                               channel->WriteAllExcept(user, false, '@', except_list, "PART %s%s%s", channel->name, partmessage.empty() ? "" : " :",
+                       {
+                               channel->WriteAllExcept(user, false, channel->GetStatus(user) >= STATUS_OP ? 0 : '@', except_list, "PART %s%s%s", channel->name, partmessage.empty() ? "" : " :",
                                                partmessage.empty() ? "" : partmessage.c_str());
+                       }
                }
        }
 
@@ -157,7 +159,7 @@ class ModuleAuditorium : public Module
                        /* Send silenced event only to the user being kicked and the user doing the kick */
                        source->WriteFrom(source, "KICK %s %s %s", chan->name, user->nick, reason.c_str());
                        if (ShowOps)
-                               chan->WriteAllExcept(source, false, '@', except_list, "KICK %s %s %s", chan->name, user->nick, reason.c_str());
+                               chan->WriteAllExcept(source, false, chan->GetStatus(source) >= STATUS_OP ? 0 : '@', except_list, "KICK %s %s %s", chan->name, user->nick, reason.c_str());
                        else
                                user->WriteFrom(source, "KICK %s %s %s", chan->name, user->nick, reason.c_str());
                }