Author: Alex Badea <vampire@p16.pub.ro>
authorAlex Badea <vampire@p16.pub.ro>
Mon, 15 Apr 2002 20:16:13 +0000 (20:16 +0000)
committerAlex Badea <vampire@p16.pub.ro>
Mon, 15 Apr 2002 20:16:13 +0000 (20:16 +0000)
Log message:

Fixed typo (read: core bug) in get_client_class

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@738 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/class.c

index 9b6018da4dbb1f8d73ee4d44ffb8d527c93fe0a0..b9bbf99a38180c1bb0b268020f6c49d840f4646c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-15  Alex Badea  <vampire@p16.pub.ro>
+
+       * ircd/class.c (get_client_class): fixed typo which caused
+       /trace (and perhaps motd) to core
+
 2002-04-15  beware <steendijk@tomaatnet.nl>
 
        * ircd/m_whois.c: Fixed /whois servermask nomatch bug
index 7f6c354de435ca02465b7b1785a9adfe799d5eed..27ca816a1071f790c4847bb048d0d14682292d05 100644 (file)
@@ -163,7 +163,7 @@ get_client_class(struct Client *acptr)
   if (acptr && !IsMe(acptr) && (cli_confs(acptr)))
     for (tmp = cli_confs(acptr); tmp; tmp = tmp->next)
     {
-      if (tmp->value.aconf && !(cl = tmp->value.aconf->conn_class))
+      if (tmp->value.aconf && (cl = tmp->value.aconf->conn_class))
         return ConClass(cl);
     }
   return "(null-class)";