From 7d3e3c509d20addb32ab6701155b35a7023d3b4d Mon Sep 17 00:00:00 2001 From: lookshe Date: Tue, 20 Sep 2011 23:16:53 +0200 Subject: changed to get date if it is required (last speaking time was not today) --- lastseen.tcl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lastseen.tcl') diff --git a/lastseen.tcl b/lastseen.tcl index 8733c61..d82a135 100644 --- a/lastseen.tcl +++ b/lastseen.tcl @@ -10,11 +10,7 @@ proc lastspoke {nick host hand chan arg} { if {$arg == ""} { return 0 } - if {[onchan $arg $chan] != 1} { - set output [split "[exec perl /home/eggdrop/eggdrop/scripts/lastspoke.pl /home/eggdrop/eggdrop/logs [string trimleft $chan #] $arg 1]" "\n"] - } else { - set output [split "[exec perl /home/eggdrop/eggdrop/scripts/lastspoke.pl /home/eggdrop/eggdrop/logs [string trimleft $chan #] $arg 0]" "\n"] - } + set output [split "[exec perl /home/eggdrop/eggdrop/scripts/lastspoke.pl /home/eggdrop/eggdrop/logs [string trimleft $chan #] $arg]" "\n"] foreach out $output { putserv "PRIVMSG $chan :$out"; } -- cgit v1.2.3