1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 18:00:28 +00:00

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

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)