Illidan wrote:I tried changing to
[snip]
if {![string match $nick "*.services.org"]} && {![string tolower "$botnick"]) && {![string match "$chan"])
[snip]
it doesnt work at all
1. "![string match $nick "*.services.org"]". Look up the use of string match and the use of the two arguments and which one of these two can have a glob pattern.
2. ![string match $nick "*.services.org"]. Suppose you get the string match right using comment 1 above. Now $nick will contain the nick like "servicebot". Why are you matching the nick against a hostmask?
3. ![string tolower "$botnick"]. Suppose the botnick is "MyBoT". The command [string tolower $botnick] will convert it to "mybot". And then what?
4. ![string match "$chan"]. Suppose you know what [string match] does based on comment 1, then what should this test do?
5. Besides, it seems you do want to regain ops by cycling the channel. It also seems that the ops will be supplied by a service bot. Isn't there a way to request the ops directly from the service bot instead of cycling the channel.
6. In case the bot gets deeopped, the binding "NEED op" gets triggered. You may want to bind to that instead of the mode change.