From 8d8447a7f936e82057143371de8fbbc9d7443b09 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Wed, 13 Jan 2016 15:59:13 -0700 Subject: Bugfixes and improvements - Stop asking ChanServ to be unbanned from a channel - Only sync channels we actually join - Fix NickServ message detection (I wish they used numerics) --- lib/ASM/Event.pm | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lib/ASM/Event.pm') diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm index 7f7ff3c..690a12d 100644 --- a/lib/ASM/Event.pm +++ b/lib/ASM/Event.pm @@ -236,13 +236,13 @@ sub on_join { mkdir($::settings->{log}->{dir} . $chan); $::synced{$chan} = 0; $::pendingsync++; -# unless ( (scalar @::syncqueue) > 4 ) { -# ASM::Util->dprint("Syncing $chan", "sync"); -# $conn->sl('who ' . $chan . ' %tcnuhra,314'); -# $conn->sl('mode ' . $chan); -# $conn->sl('mode ' . $chan . ' bq'); -# } -# push @::syncqueue, $chan; + unless ( scalar @::syncqueue ) { + ASM::Util->dprint("Syncing $chan", "sync"); + $conn->sl('who ' . $chan . ' %tcnuhra,314'); + $conn->sl('mode ' . $chan); + $conn->sl('mode ' . $chan . ' b'); + } + push @::syncqueue, $chan; } $::sc{$chan}{users}{$nick} = {}; $::sc{$chan}{users}{$nick}{hostmask} = $event->{userhost}; @@ -902,8 +902,7 @@ sub on_whofuckedup sub on_bannedfromchan { my ($conn, $event) = @_; - ASM::Util->dprint("I'm banned from " . $event->{args}->[1] . "... attempting to unban myself", 'startup'); - $conn->privmsg('ChanServ', "unban $event->{args}->[1]"); + ASM::Util->dprint("I'm banned from " . $event->{args}->[1], 'startup'); } sub on_byechan { -- cgit v1.2.3