]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Someone forgot to do founder too :p
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 12 Dec 2006 20:54:49 +0000 (20:54 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 12 Dec 2006 20:54:49 +0000 (20:54 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5965 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_chanprotect.cpp

index 04c35bb5a40776aee161fb063b795f5c8e0858fa..390844ac606c7028f34aa60d277c758b36576700 100644 (file)
@@ -199,7 +199,7 @@ class ChanFounder : public ModeHandler, public FounderProtectBase
                }
 
                 // source is a server, or ulined, we'll let them +-q the user.
-               if ((unload_kludge) || ((source == theuser) && (FounderProtectBase::remove_own_privs)) || (ServerInstance->ULine(source->nick)) || (ServerInstance->ULine(source->server)) || (!*source->server) || (!IS_LOCAL(source)))
+               if ((unload_kludge) || ((source == theuser) && (!adding) && (FounderProtectBase::remove_own_privs)) || (ServerInstance->ULine(source->nick)) || (ServerInstance->ULine(source->server)) || (!*source->server) || (!IS_LOCAL(source)))
                {
                        return FounderProtectBase::HandleChange(source, theuser, adding, channel, parameter);
                }