]> git.donarmstrong.com Git - infobot.git/commitdiff
- should possibly fix news problem where you join another channel the
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 14 Jun 2003 16:19:34 +0000 (16:19 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 14 Jun 2003 16:19:34 +0000 (16:19 +0000)
  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

index 948767f24831c17fa9f27b04740e4ba0172f3225..2afb80ad49c707f1f65e4d19937cadb65e254cf8 100644 (file)
@@ -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}) {