Fix kickbanning opped users

This commit is contained in:
TingPing 2013-07-30 23:29:25 -04:00
parent e2328e7a91
commit 154ea98deb

View File

@ -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;
} }
} }