It might be a good idea to limit access to this command (require some flag) or filter/escape the contents of $textnml375 wrote:Code: Select all
set f_id [open "|./htext $text"]
Code: Select all
bind time - 00* everyHour
proc everyHour {mm hh args} {
if {[scan $hh %d]%2} return;# skip odd hours
foreach chan {#yourchan #friendschan} {
puthelp "PRIVMSG $chan :\002Hello, I am here"
}
}
Code: Select all
string match \\*\\? *?
Code: Select all
bind pubm - "% -*" whatever
proc whatever {n u h c text} {
set text [string range $text 1 end]
# ...
}
Code: Select all
bind time - "00 00*" {restart;#}
Code: Select all
foreach sublist $listOfLists {
# do something to $sublist
}