diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-12 22:17:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-12 22:17:08 +0000 |
commit | a07216c652a45cbf1003af2e988464b462498766 (patch) | |
tree | b3bdf6a5c94a09653f02776295177743c9a8fdea /src | |
parent | fd0445fad795b75791f7b376fab6936621bb5dad (diff) |
GCC 4.0.2 warns because we assign in an if. we want to assign in an if, so we satisfy it by putting brackets around it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2784 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/xline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 56a277494..7354561ad 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -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(u->ip))) { snprintf(reason,MAXBUF,"Z-Lined: %s",check); Goners->AddItem(u,reason); |