Hi there, I want to check if my eggdrop is on a given channel. But whenever I try [onchan $botnick $chan] it returns an error, because the eggdrop checks this before he runs the script. Is there another possibility to check if the eggdrop is on a channel?
first you have to check if the bot is even supposed t monitor that channel...
channels
returns: list of the channels the bot is monitoring (or trying to)
validchan <channel>
checks if the bot is monitoring that channel
returns: 1 if the channel exists, 0 if not
suggestion... read the tcl-commands.doc <-- the answer to alot of answers asked in this forum are in there... just seems like people don't bother reading it..
Last edited by Papillon on Sun Jan 12, 2003 9:01 am, edited 1 time in total.