about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-12-25 19:11:43 +0100
committerAlexander Barton <alex@barton.de>2011-12-25 19:11:43 +0100
commit32bfafafd9e90f9e224bf95e4f2512cea729aac1 (patch)
treee116414b71cc63c4dfb304380b2ec4a455432dc1
parent6ef20e0f9a6c6f82fbb82b6c60f98b8e8b401b8d (diff)
downloadngircd-32bfafafd9e90f9e224bf95e4f2512cea729aac1.tar.gz
ngircd-32bfafafd9e90f9e224bf95e4f2512cea729aac1.zip
Op_Check(): always accept commands from a remote server itself
-rw-r--r--src/ngircd/op.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ngircd/op.c b/src/ngircd/op.c
index c93133c4..588513dd 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)