Log message:
Save the $R for realname K-lines
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@421
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
2001-04-18 Kevin L. Mitchell <klmitch@mit.edu>
2001-04-18 Kevin L. Mitchell <klmitch@mit.edu>
+ * ircd/s_conf.c: keep the $R in memory so we can see it clearly
+ when we do a /stats k
+
* ircd/s_user.c (set_user_mode): pull-up of changes to prevent
users from turning on +s and +g
* ircd/s_user.c (set_user_mode): pull-up of changes to prevent
users from turning on +s and +g
assert(0 != conf);
memset(conf, 0, sizeof(struct DenyConf));
assert(0 != conf);
memset(conf, 0, sizeof(struct DenyConf));
- if (fields[1][0] == '$' && fields[1][1] == 'R') {
- DupString(conf->hostmask, fields[1] + 2);
+ if (fields[1][0] == '$' && fields[1][1] == 'R')
conf->flags |= DENY_FLAGS_REALNAME;
conf->flags |= DENY_FLAGS_REALNAME;
- } else
- DupString(conf->hostmask, fields[1]);
+ DupString(conf->hostmask, fields[1]);
collapse(conf->hostmask);
if (!EmptyString(fields[2])) {
collapse(conf->hostmask);
if (!EmptyString(fields[2])) {
break;
if (deny->flags & DENY_FLAGS_REALNAME) { /* K: by real name */
break;
if (deny->flags & DENY_FLAGS_REALNAME) { /* K: by real name */
- if (0 == match(deny->hostmask, realname))
+ if (0 == match(deny->hostmask + 2, realname))
break;
} else if (deny->flags & DENY_FLAGS_IP) { /* k: by IP */
Debug((DEBUG_DEBUG, "ip: %08x network: %08x/%i mask: %08x",
break;
} else if (deny->flags & DENY_FLAGS_IP) { /* k: by IP */
Debug((DEBUG_DEBUG, "ip: %08x network: %08x/%i mask: %08x",