git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1355
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2005-04-06 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_parser.y (clientblock): Use the password field.
+
+ * ircd/s_user.c (register_user): Allow aconf->password to be a
+ single digit, since per-IP limit is now in a separate field.
+
2005-04-06 Michael Poole <mdpoole@troilus.org>
* acinclude.m4 (unet_PIPE_CFLAGS): Remove; -pipe is obsolete in
MyFree(username);
MyFree(host);
MyFree(ip);
+ MyFree(pass);
} else {
struct ConfItem *aconf = make_conf(CONF_CLIENT);
aconf->username = username;
aconf->name = ip;
aconf->conn_class = c_class ? c_class : find_class("default");
aconf->maximum = maxlinks;
+ aconf->passwd = pass;
}
host = NULL;
username = NULL;
c_class = NULL;
ip = NULL;
+ pass = NULL;
};
clientitems: clientitem clientitems | clientitem;
clientitem: clienthost | clientip | clientusername | clientclass | clientpass | clientmaxlinks | error;
return exit_client(cptr, sptr, &me, "USER: Bogus userid.");
if (!EmptyString(aconf->passwd)
- && !(IsDigit(*aconf->passwd) && !aconf->passwd[1])
&& strcmp(cli_passwd(sptr), aconf->passwd))
{
ServerStats->is_ref++;