diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-17 12:10:59 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-17 12:10:59 +0000 |
commit | 7ba299a6c42a95fbbd913c2a5910b370cf9e2cc1 (patch) | |
tree | 6cd7732d13430e564be0a03f53c5f4cb2b1bd7c3 /src | |
parent | 57542f8488ce9f3250915d6c2aa03c243e34b7b3 (diff) |
Remove completed XXX: override is now only checked locally, snotices are automatically broadcast globally, and all is well in the universe once more.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9528 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_override.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 3fabd193b..a879515f2 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -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) { - /* - * 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) { |