]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix forwarding of LIST commands
authorAlexander Barton <alex@barton.de>
Sun, 12 Feb 2012 12:51:43 +0000 (13:51 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 12 Feb 2012 12:51:43 +0000 (13:51 +0100)
Bug reported by Cahata, thanks!

src/ngircd/irc-channel.c

index 2d520b314798b7364f7d90f664c64f5917f5ba23..5ea108ad8712d142814d5cac603e13f1d1186149 100644 (file)
@@ -651,7 +651,7 @@ IRC_LIST( CLIENT *Client, REQUEST *Req )
                        /* Target is indeed an other server, forward it! */
                        return IRC_WriteStrClientPrefix(target, from,
                                                        "LIST %s :%s",
-                                                       Client_ID(from),
+                                                       Req->argv[0],
                                                        Req->argv[1]);
                }
        }