From: Alexander Barton Date: Fri, 29 Apr 2011 10:11:01 +0000 (+0200) Subject: Only require server prefixes on non RFC1459 links X-Git-Tag: rel-18-rc1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c26ca7773bfc92ca41344a0994bee45ec917b261;p=ngircd 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. --- 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) {