mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 23:23:14 +02:00
Fixed /Shun and /Gline Conflict .... (= != ==)
This commit is contained in:
@@ -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 = != ==
|
||||
|
||||
+2
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user