# tslog.irc # Copyright 1998, James Sneeringer # This script may be freely distributed or modified, provided that # due credit is given to its author. # # This script adds a timestamp to all messages displayed in the main # window, a la mIRC. This script is not meant to be added to another # script package as-is, because taking output from a window hook and # echoing it to another window is inherently dangerous and can cause # an infinite loop if you aren't careful. Use with caution. # turn this off so we can set /on hooks set novice off set BOLD_VIDEO OFF # change these to whatever you like assign wname ChangeMe assign lname mychannel.log # set up main and logging windows (logging window will be hidden) window lastlog_level none eval window new hide name $wname lastlog_level userlog1 logfile $lname log on # hooks to add timestamp to all messages set clock_24hour on eval on #-window 372 ^"$wname *" eval on #-window 372 "1 *" xecho -window $wname -level userlog1 [$$Z\\] $$1- # edit these to match your config on -disconnect * server irc.myircserver.com join #MyChannel