]> arthur.barton.de Git - ngircd-alex.git/commitdiff
IRC_QUIT_HTTP(): enhance error message
authorAlexander Barton <alex@barton.de>
Wed, 16 Mar 2011 22:58:01 +0000 (23:58 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 16 Mar 2011 22:58:01 +0000 (23:58 +0100)
src/ngircd/irc-login.c

index 518c9f1d605207a7128ce26b37ae63bab295703b..7e752179185724e1211193e3c3af6002629be29a 100644 (file)
@@ -686,7 +686,8 @@ IRC_QUIT( CLIENT *Client, REQUEST *Req )
 GLOBAL bool
 IRC_QUIT_HTTP( CLIENT *Client, REQUEST *Req )
 {
-       Req->argc = 0;
+       Req->argc = 1;
+       Req->argv[0] = "Oops, HTTP request received? This is IRC!";
        return IRC_QUIT(Client, Req);
 } /* IRC_QUIT_HTTP */