diff options
| author | 2016-01-13 15:59:13 -0700 | |
|---|---|---|
| committer | 2016-01-13 15:59:13 -0700 | |
| commit | 8d8447a7f936e82057143371de8fbbc9d7443b09 (patch) | |
| tree | 733735472c44d65a383e2c6b51f09c4caa2da4a9 /lib/ASM/Event.pm | |
| parent | 76fc4276b5966da13b984071b5d0b24fae09779b (diff) | |
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)
Diffstat (limited to 'lib/ASM/Event.pm')
| -rw-r--r-- | lib/ASM/Event.pm | 17 |
1 files changed, 8 insertions, 9 deletions
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 { |
