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))