]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Only require server prefixes on non RFC1459 links
authorAlexander Barton <alex@barton.de>
Fri, 29 Apr 2011 10:11:01 +0000 (12:11 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 29 Apr 2011 10:33:58 +0000 (12:33 +0200)
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

index 8f5e6019694a53807d023b4df9010c281ad10d0b..d7dbffc28f951465bfc6f300173e390aa9c0b131 100644 (file)
@@ -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)
        {