mirror of
https://github.com/osmarks/ngircd.git
synced 2025-11-26 10:14:51 +00:00
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.
This commit is contained in:
@@ -280,6 +280,7 @@ Validate_Prefix( CONN_ID Idx, REQUEST *Req, bool *Closed )
|
|||||||
assert( client != NULL );
|
assert( client != NULL );
|
||||||
|
|
||||||
if (!Req->prefix && Client_Type(client) == CLIENT_SERVER
|
if (!Req->prefix && Client_Type(client) == CLIENT_SERVER
|
||||||
|
&& !Conn_Options(Idx) & CONN_RFC1459
|
||||||
&& strcasecmp(Req->command, "ERROR") != 0
|
&& strcasecmp(Req->command, "ERROR") != 0
|
||||||
&& strcasecmp(Req->command, "PING") != 0)
|
&& strcasecmp(Req->command, "PING") != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user