diff options
| author | Alexander Barton <alex@barton.de> | 2011-12-25 19:11:43 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-12-25 19:11:43 +0100 |
| commit | 32bfafafd9e90f9e224bf95e4f2512cea729aac1 (patch) | |
| tree | e116414b71cc63c4dfb304380b2ec4a455432dc1 | |
| parent | 6ef20e0f9a6c6f82fbb82b6c60f98b8e8b401b8d (diff) | |
| download | ngircd-32bfafafd9e90f9e224bf95e4f2512cea729aac1.tar.gz ngircd-32bfafafd9e90f9e224bf95e4f2512cea729aac1.zip | |
Op_Check(): always accept commands from a remote server itself
| -rw-r--r-- | 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 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) |