X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-login.c;h=67a0fbfd803603befe536bc7e61e94eb06ced5a0;hp=26dae6b73b2826ca82a47d2263f4f7b6607fe7d6;hb=08f9d31d60220e8a389a2d24f42625be7749f090;hpb=904c8a4375cb9deed64007b06c6a7ba42313d93d diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index 26dae6b7..67a0fbfd 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -358,8 +358,6 @@ IRC_SVSNICK(CLIENT *Client, REQUEST *Req) assert(Client != NULL); assert(Req != NULL); - _IRC_ARGC_EQ_OR_RETURN_(Client, Req, 2) - /* Search the originator */ from = Client_Search(Req->prefix); if (!from) @@ -521,8 +519,6 @@ IRC_SERVICE(CLIENT *Client, REQUEST *Req) return IRC_WriteErrClient(Client, ERR_ALREADYREGISTRED_MSG, Client_ID(Client)); - _IRC_ARGC_EQ_OR_RETURN_(Client, Req, 6) - if (Client_Type(Client) != CLIENT_SERVER) return IRC_WriteErrClient(Client, ERR_ERRONEUSNICKNAME_MSG, Client_ID(Client), Req->argv[0]); @@ -598,8 +594,6 @@ IRC_SERVICE(CLIENT *Client, REQUEST *Req) GLOBAL bool IRC_WEBIRC(CLIENT *Client, REQUEST *Req) { - _IRC_ARGC_EQ_OR_RETURN_(Client, Req, 4) - if (!Conf_WebircPwd[0] || strcmp(Req->argv[0], Conf_WebircPwd) != 0) return IRC_WriteErrClient(Client, ERR_PASSWDMISMATCH_MSG, Client_ID(Client)); @@ -610,6 +604,8 @@ IRC_WEBIRC(CLIENT *Client, REQUEST *Req) Client_SetUser(Client, Req->argv[1], true); Client_SetOrigUser(Client, Req->argv[1]); Client_SetHostname(Client, Req->argv[2]); + Client_SetIPAText(Client, Req->argv[3]); + return CONNECTED; } /* IRC_WEBIRC */ @@ -629,8 +625,6 @@ IRC_QUIT( CLIENT *Client, REQUEST *Req ) assert(Client != NULL); assert(Req != NULL); - _IRC_ARGC_LE_OR_RETURN_(Client, Req, 1) - if (Req->argc == 1) strlcpy(quitmsg, Req->argv[0], sizeof quitmsg);