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:
brain 2006-07-09 13:28:41 +00:00
parent 71bf5b1528
commit 0b5f8887db

View File

@ -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 */