From 0b5f8887db6916c367975146e12e157b4b1ceae3 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 13:28:41 +0000 Subject: 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 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3