Hello,
I simply want to check if my eggdrop is on a specific channel. I found "botonchan", but when the eggdrop is not on the channel [botonchan #abc] doesn`t report 0 or -1, but reports an tcl error! This is really crazy, because most people would use botonchan to check if the eggdrop is on that channel, to prevent errors. Is there any other way, to check if the eggdrp is on the given channel?
The only way I can think of, is to make a foreach with all channels, the bot currently is on, and to check if the given channel also is in this list. But this method would be something slower that botonchan.
There`s also a second question, which solution seems very difficult to me:
If a user uses a public command and the argument send to the procedure is a channel, the user often doesn`t know the case sesitive of the channel. In most cases, those user will type the channel lowercase, which is no problem to check, if the eggdrop is on, but what could I do, to answer "Yes, I am on '$channel'!" with $channel is case sensitive like than channel really is named. I only have one idea to solve this, but this seems very unusual to me. Any other suggestions?
Greetings,
ProXy