Op_Check(): always accept commands from a remote server itself

This commit is contained in:
Alexander Barton 2011-12-25 19:11:43 +01:00
parent 6ef20e0f9a
commit 32bfafafd9
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ Op_Check(CLIENT * Client, REQUEST * Req)
if (!c)
return NULL;
if (Client_Type(Client) == CLIENT_SERVER
&& Client_Type(c) == CLIENT_SERVER)
return c;
if (!Client_HasMode(c, 'o'))
return NULL;
if (!Client_OperByMe(c) && !Conf_AllowRemoteOper)