From a1e3d57d9ed0a434d87f3232ced0fc1f31bdf669 Mon Sep 17 00:00:00 2001 From: drbin Date: Thu, 15 Jun 2000 20:01:09 +0000 Subject: [PATCH] Fixed /Shun and /Gline Conflict .... (= != ==) --- Changes | 1 + src/s_kline.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index f75dfab7d..21b37bf46 100644 --- a/Changes +++ b/Changes @@ -356,3 +356,4 @@ - /quote close do not show realhost of caller anymore - /shun accepts nick in add mode now (adds *@host) - Allowed /shunned users to use /pong now +- Fixed (by DrBin) Shun and Gline bug, where they replaced eachothers ->type .... Learn that = != == diff --git a/src/s_kline.c b/src/s_kline.c index 2df96349b..eab6b99a9 100644 --- a/src/s_kline.c +++ b/src/s_kline.c @@ -796,7 +796,7 @@ int m_gline(aClient *cptr, aClient *sptr, int parc, char *parv[]) for (tk = tklines; tk; tk = tk->next) { - if (tk->type = (TKL_GLOBAL | TKL_KILL)) + if (tk->type == (TKL_GLOBAL | TKL_KILL)) { if (!match(tk->hostmask, usermask) && !match(tk->usermask, hostmask)) @@ -993,7 +993,7 @@ int m_shun(aClient *cptr, aClient *sptr, int parc, char *parv[]) for (tk = tklines; tk; tk = tk->next) { - if (tk->type = (TKL_GLOBAL | TKL_SHUN)) + if (tk->type == (TKL_GLOBAL | TKL_SHUN)) { if (!match(tk->hostmask, usermask) && !match(tk->usermask, hostmask))