]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Use correct sender as target for ISUPPORT replies on "VERSION"
authorAlexander Barton <alex@barton.de>
Mon, 27 Jan 2014 21:23:47 +0000 (22:23 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 27 Jan 2014 21:23:47 +0000 (22:23 +0100)
This fixes commit 2e168c78 ("Return ISUPPORT(005) numerics on
'VERSION'") and make sure, that the 005 numerics are correctly
routed back to the sender.

src/ngircd/irc-info.c

index cc19465ac3eb529c62e4bc11260c604a3c137a60..d367647f4ea7bfd67132d45323049f1a62c5ab66 100644 (file)
@@ -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