mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-21 00:19:02 -04:00
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
This commit is contained in:
parent
71bf5b1528
commit
0b5f8887db
@ -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,
|
/* 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
|
* 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;
|
continue;
|
||||||
|
|
||||||
/* Call the handler for the mode */
|
/* Call the handler for the mode */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user