]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
don't clear channels, minor utf8 tweak
[infobot.git] / src / IRC / IrcHooks.pl
index f0c289d171033d9dbcb1301a3416e05119545889..78bd14f4d4bc3cf02db607a3bf2a533a578e5efd 100644 (file)
@@ -463,8 +463,10 @@ sub on_endofnames {
 
     &chanServCheck($chan);
 
+    # FIXME: scheduler is b0rken! flood join for now
     # schedule used to solve ircu (OPN) 'target too fast' problems.
-    $conn->schedule( 5, sub { &joinNextChan(); } );
+    #$conn->schedule( 5, sub { &joinNextChan(); } );
+    &joinNextChan();
 }
 
 sub on_init {
@@ -1328,8 +1330,8 @@ sub on_chanfull {
     my ($event) = @_;
     my @args = $event->args;
 
-    &status(">>> chanfull/$b_blue$args[1]$ob");
-
+    &status(">>> chanfull/$b_blue$args[1]$ob, removing autojoin");
+    delete $chanconf{$chan}{autojoin};
     &joinNextChan();
 }
 
@@ -1338,8 +1340,8 @@ sub on_inviteonly {
     my ($event) = @_;
     my @args = $event->args;
 
-    &status(">>> inviteonly/$b_cyan$args[1]$ob");
-
+    &status(">>> inviteonly/$b_cyan$args[1]$ob, removing autojoin");
+    delete $chanconf{$chan}{autojoin};
     &joinNextChan();
 }