From cc66ca916591e50278609a95bd7e2466fd66df05 Mon Sep 17 00:00:00 2001
From: Alexander Barton <alex@barton.de>
Date: Fri, 29 Apr 2011 12:11:01 +0200
Subject: [PATCH] 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.
---
 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 8f5e601..d7dbffc 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)
 	{
-- 
1.7.5

