diff options
| author | Alexander Barton <alex@barton.de> | 2011-04-29 12:11:01 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-04-29 12:33:58 +0200 |
| commit | c26ca7773bfc92ca41344a0994bee45ec917b261 (patch) | |
| tree | e18046b6cdee2ce8ec87c10109f7122e0dced13d | |
| parent | 1cb2f5739d867502c45cad1c8edfa4c5dcd47933 (diff) | |
| download | ngircd-c26ca7773bfc92ca41344a0994bee45ec917b261.tar.gz ngircd-c26ca7773bfc92ca41344a0994bee45ec917b261.zip | |
Only require server prefixes on non RFC1459 links
Not all servers (and services!) using the RFC1459 protocol style send prefixes on all commands; so don't require them to do so. This relaxes the requirements introduced by commit 15775e679.
| -rw-r--r-- | src/ngircd/parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 8f5e6019..d7dbffc2 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -280,6 +280,7 @@ Validate_Prefix( CONN_ID Idx, REQUEST *Req, bool *Closed ) assert( client != NULL ); if (!Req->prefix && Client_Type(client) == CLIENT_SERVER + && !Conn_Options(Idx) & CONN_RFC1459 && strcasecmp(Req->command, "ERROR") != 0 && strcasecmp(Req->command, "PING") != 0) { |