From 479f43d86a6a7ea781c9889f21480c26f3888d15 Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Wed, 18 Apr 2001 20:38:06 +0000 Subject: [PATCH] Author: Kev 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 --- ChangeLog | 3 +++ ircd/s_conf.c | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b33b88..11e3e73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-04-18 Kevin L. Mitchell + * 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 diff --git a/ircd/s_conf.c b/ircd/s_conf.c index 7beb1ed..fe056e5 100644 --- a/ircd/s_conf.c +++ b/ircd/s_conf.c @@ -847,12 +847,10 @@ void conf_add_deny(const char* const* fields, int count, int ip_kill) 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; - } else - DupString(conf->hostmask, fields[1]); + DupString(conf->hostmask, fields[1]); collapse(conf->hostmask); if (!EmptyString(fields[2])) { @@ -1417,7 +1415,7 @@ int find_kill(struct Client *cptr) 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", -- 2.20.1