From 25a5f8b539e3977d20647a26e3f79ecdab4cddc9 Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 14 Jun 2003 16:19:34 +0000 Subject: [PATCH] - 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 --- src/Modules/News.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}) { -- 2.39.5