Op_Check(): always accept commands from a remote server itself
authorAlexander Barton <alex@barton.de>
Sun, 25 Dec 2011 18:11:43 +0000 (19:11 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 25 Dec 2011 18:11:43 +0000 (19:11 +0100)
src/ngircd/op.c

index c93133c432021f3e1c540f2e5de3e6bc8c8719aa..588513dd43dd87271d64f3b6111d25b68300ddbb 100644 (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)