Module: ngircd.git Branch: master Commit: 32bfafafd9e90f9e224bf95e4f2512cea729aac1 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=32bfa...
Author: Alexander Barton alex@barton.de Date: Sun Dec 25 19:11:43 2011 +0100
Op_Check(): always accept commands from a remote server itself
---
src/ngircd/op.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/op.c b/src/ngircd/op.c index c93133c..588513d 100644 --- a/src/ngircd/op.c +++ b/src/ngircd/op.c @@ -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)