Fix kickbanning opped users
This commit is contained in:
parent
e2328e7a91
commit
154ea98deb
|
@ -487,19 +487,19 @@ create_mask (session * sess, char *mask, char *mode, char *typestr, int deop)
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!*@%s.*", mode, p2, domain);
|
snprintf (buf, sizeof (buf), "%s %s *!*@%s.*", mode, p2, domain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!*@%s", mode, p2, fullhost);
|
snprintf (buf, sizeof (buf), "%s %s *!*@%s", mode, p2, fullhost);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!%s@%s.*", mode, p2, username, domain);
|
snprintf (buf, sizeof (buf), "%s %s *!%s@%s.*", mode, p2, username, domain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!%s@%s", mode, p2, username, fullhost);
|
snprintf (buf, sizeof (buf), "%s %s *!%s@%s", mode, p2, username, fullhost);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
@ -507,19 +507,19 @@ create_mask (session * sess, char *mask, char *mode, char *typestr, int deop)
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!*@*%s", mode, p2, domain);
|
snprintf (buf, sizeof (buf), "%s %s *!*@*%s", mode, p2, domain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!*@%s", mode, p2, fullhost);
|
snprintf (buf, sizeof (buf), "%s %s *!*@%s", mode, p2, fullhost);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!%s@*%s", mode, p2, username, domain);
|
snprintf (buf, sizeof (buf), "%s %s *!%s@*%s", mode, p2, username, domain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
snprintf (buf, sizeof (buf), "%s%s *!%s@%s", mode, p2, username, fullhost);
|
snprintf (buf, sizeof (buf), "%s %s *!%s@%s", mode, p2, username, fullhost);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue