Преглед изворни кода

* Changed quickban() to ALWAYS add a *!* on to the uhost to ban.
This is for future stripping of strict_host


svn: 1181

Bryan Drewery пре 22 година
родитељ
комит
3806eea703
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/mod/irc.mod/chan.c

+ 2 - 1
src/mod/irc.mod/chan.c

@@ -540,7 +540,8 @@ static char *quickban(struct chanset_t *chan, char *uhost)
   static char s1[512] = "";
 
   maskhost(uhost, s1);
-  if ((strlen(s1) != 1) && (strict_host == 0))
+  /* this used to only happen with strict_host == 0 */
+  if (strlen(s1) != 1)
     s1[2] = '*';		/* arthur2 */
   do_mask(chan, chan->channel.ban, s1, 'b');
   return s1;