Really? It looks like it will work, although I haven't tested it. Try adding putlog statements to see where it's going wrong. Put one right after the global timemsg part says putlog "testing $hour:$min in [array names timemsg]" and one inside the 'if' statement saying putlog "inside the if" or something.
Well clearly there's no swedish A in my script, so you either made a typo or your editor saved in utf-8 mode. Try doing it again in a different editor (vi/vim is good).
hi st - just wondering if you could double-check this for me - it is sending a msg to the channel, but it's doing it every minute rather than every hour.
I have changed the mesages and times for a different message each hour, but it just cycles through them every minute...thanks
set timemsg(01:00) "some message for 1am"
set timemsg(03:15) "some message for 3:15am"
set timemsg(15:00) "some message for 3pm... etc..."
bind time - "* * * * *" timed_message
proc timed_message {min hour day month year} {
global timemsg
if {[info exists timemsg($hour:$min)]} {
putserv "privmsg #sheep :$timemsg($hour:$min)"
}
return 0
}