From: dms Date: Sat, 14 Jun 2003 16:19:34 +0000 (+0000) Subject: - should possibly fix news problem where you join another channel the X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=25a5f8b539e3977d20647a26e3f79ecdab4cddc9;p=infobot.git - should possibly fix news problem where you join another channel the bot is in (and news is not active) while being on a news-active channel. problem found by Shorty@kalgoorlie. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@794 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/News.pl b/src/Modules/News.pl index 948767f..2afb80a 100644 --- a/src/Modules/News.pl +++ b/src/Modules/News.pl @@ -721,11 +721,11 @@ sub set { } sub latest { - my($tchan, $flag) = @_; + my ($tchan, $flag) = @_; - # hack hack hack. - $chan ||= $tchan; - $who = $::who; + # hack hack hack. fix later. + $chan = $tchan; + $who = $::who; # todo: if chan = undefined, guess. # if (!exists $::news{$chan}) {