]> git.donarmstrong.com Git - infobot.git/commitdiff
minor update
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 18 Sep 2000 11:36:56 +0000 (11:36 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 18 Sep 2000 11:36:56 +0000 (11:36 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@110 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl

index 552f93b02906ded2226b54007c8a89093c156160..52d2c60e3dc988b6ae786159ed1b88a3256c42b5 100644 (file)
@@ -122,7 +122,6 @@ sub on_endofmotd {
        close IN;
     }
 
-    ### TODO: move this to end of &joinNextChan()?
     if ($firsttime) {
        &DEBUG("on_EOM: calling sS in 60s.");
        $conn->schedule(60, \&setupSchedulers, "");
@@ -268,12 +267,14 @@ sub on_endofnames {
 
        my @chans = split(/[\s\t]+/, $param{'chanServ_ops'});
 
+       ### TODO: since this function has a chan arg, why don't we use
+       ###       that instead of doing the following?
        foreach $chan (keys %channels) {
            next unless (grep /^$chan$/i, @chans);
 
            if (!exists $channels{$chan}{'o'}{$ident}) {
                &status("ChanServ ==> Requesting ops for $chan.");
-               rawout("PRIVMSG ChanServ :OP $chan $ident");
+               &rawout("PRIVMSG ChanServ :OP $chan $ident");
            }
        }
     }