]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove completed XXX: override is now only checked locally, snotices are automaticall...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 17 Apr 2008 12:10:59 +0000 (12:10 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 17 Apr 2008 12:10:59 +0000 (12:10 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9528 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_override.cpp

index 3fabd193bc6a421fa68f5dcdaff4921ffbb55293..a879515f2b63f39ccf53464111fbe9aa598f3a6d 100644 (file)
@@ -230,13 +230,7 @@ class ModuleOverride : public Module
        
        virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)
        {
        
        virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)
        {
-               /*
-                * XXX: this is potentially prone to desyncs (though unlikely).
-                * Really, now we have a protocol interface, we should only do
-                * this for *local* users and just broadcast out a SNONOTICE if
-                * an override is perpetrated. -- w00t
-                */
-               if (IS_OPER(user))
+               if (IS_LOCAL(user) && IS_OPER(user))
                {
                        if (chan)
                        {
                {
                        if (chan)
                        {