Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Wed, 18 Apr 2001 20:38:06 +0000 (20:38 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Wed, 18 Apr 2001 20:38:06 +0000 (20:38 +0000)
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
ircd/s_conf.c

index 3b33b88d645fc244fc518b2703cc96b725688a0d..11e3e731af600b39608fa1cb3dd9f50e0dbb7155 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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
 
index 7beb1ed6262d311ba07827453a21678ef8f3b0c6..fe056e530874b82a754838a9400db6dbea9afc5c 100644 (file)
@@ -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",