diff options
author | lookshe <mail@lookshe.org> | 2011-09-20 23:16:53 +0200 |
---|---|---|
committer | lookshe <mail@lookshe.org> | 2011-09-20 23:16:53 +0200 |
commit | 7d3e3c509d20addb32ab6701155b35a7023d3b4d (patch) | |
tree | a5de439b21c973766af5aed1ac812cb560ec4b35 /lastseen.tcl | |
parent | c4b1a82f6b3ece544da0b6f42825b549aa6ac6f2 (diff) |
changed to get date if it is required (last speaking time was not today)
Diffstat (limited to 'lastseen.tcl')
-rw-r--r-- | lastseen.tcl | 6 |
1 files changed, 1 insertions, 5 deletions
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"; } |