diff options
| author | 2014-04-22 23:46:10 +0400 | |
|---|---|---|
| committer | 2014-04-22 23:46:10 +0400 | |
| commit | ac56812a5a79b5187a89cb7dcd9078c11ffed54e (patch) | |
| tree | 8b0cd4718ec93d76127793c2ee2dc2914253b9c0 /meta.pl | |
| parent | 02ce9f49538d6a89c6562708a0ac2871b2d46dc3 (diff) | |
added some things in gitignore,
added connection tx/rx info to status reports,
added exit, sync, and ping commands,
bot says which channel a restricted person tries to use ops command on,
blacklist system is more intelligent (reason, person adding, can be removed),
added functionality for working with URLs,
automatically retries to join channels that are throttled,
make sure we send passwords to NickServ@services.,
fixed a scheduling loophole that was exploitable,
greatly reduced startup warnings due to slow syncing
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -15,6 +15,7 @@ use POSIX qw(strftime); use Term::ANSIColor qw(:constants); use File::Monitor; use feature qw(say); +use HTTP::Async; $Data::Dumper::Useqq=1; @@ -28,12 +29,13 @@ $::cset = ''; $::pacealerts = 1; $::settingschanged = 0; %::wordlist = (); +%::httpRequests = (); ## debug variables. 0 to turn off debugging, else set it to a Term::ANSIColor constant. %::debugx = ( "dnsbl" => 0, "pingpong" => 0, #BLUE, - "services" => YELLOW, + "snotice" => YELLOW, "sync" => CYAN, "chanstate" => MAGENTA, "restrictions" => BLUE, @@ -87,6 +89,7 @@ sub init { mkdir($::settings->{log}->{dir}); $::log = ASM::Log->new($::settings->{log}); $::pass = $::settings->{pass} if $::pass eq ''; + $::async = HTTP::Async->new(); $host = ${$::settings->{server}}[rand @{$::settings->{server}}]; ASM::Util->dprint( "Connecting to $host", "startup"); $irc->debug($::debug); @@ -132,7 +135,7 @@ sub init { $::wordlist{lc $item} = 1; } $::fm = File::Monitor->new(); - foreach my $file ("channels", "commands", "dnsbl", "mysql", "restrictions", "rules", "settings", "users") { + foreach my $file ("channels", "commands", "dnsbl", "mysql", "restrictions", "rules", "settings", "users", "blacklist") { $::fm->watch("./" . $::cset . '/' . $file . ".xml"); } $::fm->watch("string_blacklist.txt"); |
