diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:28:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:28:41 +0000 |
commit | 0b5f8887db6916c367975146e12e157b4b1ceae3 (patch) | |
tree | 17cbf901918dd6e634db1d75f727db096779c3b1 /src/mode.cpp | |
parent | 71bf5b1528d284524f369836a02c14b209086e6e (diff) |
Tweak mode parser so that oper-only modes are only enforced on local clients, so that during a burst the remote server can set them and we dont get desyncs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4212 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 61fc362c7..5d6be4e74 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -400,7 +400,7 @@ void ModeParser::Process(char **parameters, int pcnt, userrec *user, bool server /* It's an oper only mode, check if theyre an oper. If they arent, * eat any parameter that came with the mode, and continue to next */ - if ((modehandlers[handler_id]->NeedsOper()) && (!*user->oper)) + if ((IS_LOCAL(user)) && (modehandlers[handler_id]->NeedsOper()) && (!*user->oper)) continue; /* Call the handler for the mode */ |