4
0

sirc-timestamp.pl 708 B

1234567891011121314151617181920212223242526
  1. # sirc-timestamp.pl
  2. # script for sirc irc client which shows time in every line
  3. # by bartko!misiopysio09@netscape.net
  4. # http://mywebpage.netscape.com/bartek09/
  5. $add_ons.="+sirc-timestamp.pl";
  6. sub whattime {
  7. ($sec,$min,$hour) = localtime(time);
  8. ($min < 10) && ($min = "0" . $min);
  9. ($hour < 10) && ($hour = "0" . $hour);
  10. return "$hour:$min";
  11. }
  12. sub hook_timeprint {
  13. my ($theline) = $_[0];
  14. $_[0] = whattime() . ' ' . $theline;
  15. }
  16. addhook ('print','timeprint');
  17. &addhelp("timestamp","This is \cusirc-timestamp.pl\cu for sirc by \cbbartko\cb
  18. The script adds timestamps in format hh:mm at the
  19. beginning of each line");
  20. print("*\cba\cb* \cbbartko\cb's \cvsirc-timestamp.pl\cv loaded ... \n");