]> git.donarmstrong.com Git - infobot.git/commitdiff
-autojoin on full or inviteonly
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 22 Nov 2010 23:37:14 +0000 (23:37 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 22 Nov 2010 23:37:14 +0000 (23:37 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1897 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl

index f0c289d171033d9dbcb1301a3416e05119545889..6abf6ef95e05c5c609848071a3881f092dc9c921 100644 (file)
@@ -1328,8 +1328,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 +1338,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();
 }