From 82289cf4aadecd3e790e57ed709f7e0a0abde341 Mon Sep 17 00:00:00 2001 From: dms Date: Mon, 18 Sep 2000 11:36:56 +0000 Subject: [PATCH] minor update git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@110 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/IRC/IrcHooks.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blootbot/src/IRC/IrcHooks.pl b/blootbot/src/IRC/IrcHooks.pl index 552f93b..52d2c60 100644 --- a/blootbot/src/IRC/IrcHooks.pl +++ b/blootbot/src/IRC/IrcHooks.pl @@ -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"); } } } -- 2.39.5