repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 0fc822d8c44be42a62d3c26bbab99d5d0bc88346:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 0fc822d8c44be42a62d3c26bbab99d5d0bc88346
Author: Alexander Barton 
Date:   Mon Jan 27 22:23:47 2014 +0100

    Use correct sender as target for ISUPPORT replies on "VERSION"

    This fixes commit 2e168c78 ("Return ISUPPORT(005) numerics on
    'VERSION'") and make sure, that the 005 numerics are correctly
    routed back to the sender.

diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index cc19465ac3eb529c62e4bc11260c604a3c137a60..
index ..d367647f4ea7bfd67132d45323049f1a62c5ab66 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -1114,7 +1114,7 @@ IRC_VERSION( CLIENT *Client, REQUEST *Req )

 #ifndef STRICT_RFC
 	/* send RPL_ISUPPORT(005) numerics */
-	if (!IRC_Send_ISUPPORT(Client))
+	if (!IRC_Send_ISUPPORT(prefix))
 		return DISCONNECTED;
 #endif

-----END OF PAGE-----