]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/xline.cpp
Removed some debug notices that were mistakenly in the DEFAULT loglevel
[user/henk/code/inspircd.git] / src / xline.cpp
index 56a2774946fafd2e18e1dc942bca14cf6bce9c90..bfffd0d84bd367080a47c73ccc729b28803f451c 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
@@ -668,7 +668,7 @@ void apply_lines(const int What)
                }
                if ((What & APPLY_GLINES) && (glines.size() || pglines.size()))
                {
-                       if (check = matches_gline(host))
+                       if ((check = matches_gline(host)))
                        {
                                snprintf(reason,MAXBUF,"G-Lined: %s",check);
                                Goners->AddItem(u,reason);
@@ -676,7 +676,7 @@ void apply_lines(const int What)
                }
                if ((What & APPLY_KLINES) && (klines.size() || pklines.size()))
                {
-                       if (check = matches_kline(host))
+                       if ((check = matches_kline(host)))
                        {
                                snprintf(reason,MAXBUF,"K-Lined: %s",check);
                                Goners->AddItem(u,reason);
@@ -684,7 +684,7 @@ void apply_lines(const int What)
                }
                if ((What & APPLY_QLINES) && (qlines.size() || pqlines.size()))
                {
-                       if (check = matches_qline(u->nick))
+                       if ((check = matches_qline(u->nick)))
                        {
                                snprintf(reason,MAXBUF,"Matched Q-Lined nick: %s",check);
                                Goners->AddItem(u,reason);
@@ -692,7 +692,7 @@ void apply_lines(const int What)
                }
                if ((What & APPLY_ZLINES) && (zlines.size() || pzlines.size()))
                {
-                       if (check = matches_zline(u->ip))
+                       if ((check = matches_zline((char*)inet_ntoa(u->ip4))))
                        {
                                snprintf(reason,MAXBUF,"Z-Lined: %s",check);
                                Goners->AddItem(u,reason);