- disable banning of ppl w/ aggressive in rootwarn
- rootwarn: don't keep count of nick=root
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@499
c11ca15a-4712-0410-83d8-
924469b57eb5
- if ($_ = &getChanConf("ircTextCounters")) {
+ # warn: lets process it anyway.
+ if (1 and $_ = &getChanConf("ircTextCounters")) {
s/([^\w\s])/\\$1/g;
my $z = join '|', split ' ';
s/([^\w\s])/\\$1/g;
my $z = join '|', split ' ';
}
} else { # >3rd time occurrance.
}
} else { # >3rd time occurrance.
- if ($warnmode =~ /aggressive/i) {
+
+ # disable this for the time being.
+ if (0 and $warnmode =~ /aggressive/i) {
if ($channels{$chan}{'o'}{$ident}) {
&status("RootWarn: $nick... sigh... bye bye.");
rawout("MODE $chan +b *!root\@$host"); # ban
if ($channels{$chan}{'o'}{$ident}) {
&status("RootWarn: $nick... sigh... bye bye.");
rawout("MODE $chan +b *!root\@$host"); # ban
$attempt++;
### TODO: OPTIMIZE THIS.
$attempt++;
### TODO: OPTIMIZE THIS.
+ # ok... don't record the attempt if nick==root.
+ if (1 and $nick ne "root") { # old
&dbSet("rootwarn", { nick => lc($nick) }, { attempt => $attempt });
&dbSet("rootwarn", { nick => lc($nick) }, { time => time() });
&dbSet("rootwarn", { nick => lc($nick) }, { host => $user."\@".$host });
&dbSet("rootwarn", { nick => lc($nick) }, { channel => $chan });
&dbSet("rootwarn", { nick => lc($nick) }, { attempt => $attempt });
&dbSet("rootwarn", { nick => lc($nick) }, { time => time() });
&dbSet("rootwarn", { nick => lc($nick) }, { host => $user."\@".$host });
&dbSet("rootwarn", { nick => lc($nick) }, { channel => $chan });
- } else { # new. replace.
+ } else { # new. replace. TODO
&dbSet("rootwarn", "nick", lc($nick), "attempt", $attempt);
&dbSet("rootwarn", "nick", lc($nick), "time", time());
&dbSet("rootwarn", "nick", lc($nick), "host", $user."\@".$host);
&dbSet("rootwarn", "nick", lc($nick), "attempt", $attempt);
&dbSet("rootwarn", "nick", lc($nick), "time", time());
&dbSet("rootwarn", "nick", lc($nick), "host", $user."\@".$host);