I dont know if this is the right forum because it are eggdrop commands in a tcl script. So i thought this was the best place.
The script contains a little protection from some modes from channelusers. Like -o/kick. This works quite allright.
And i also want's too have the bot too msg Q (quakenet channel service)
too grant him op/invite/unban on the channel.
Well this is possible because i have checked it out (i set the commands in chanlist manually)
This is what is have in my script
This is a part of a script who's setting channelsetting every 6 hours.. the rest of the "channel set" works.if {[channel get $channel bot:masterflags]} {
channel set $channel need-invite {putserv "PRIVMSG Q :invite $channel"}
channel set $channel need-key {putserv "PRIVMSG Q :clearchan $channel"}
channel set $channel need-unban {putserv "PRIVMSG Q :banclear $channel"}
channel set $channel need-op {putserv "PRIVMSG Q :op $channel"}
I want this too be like this ( this is manually done !! )
Butt if i do it like the first quote, then he doesnt fill in the $channel variable. then its like this(14:38:00) ((Dizzle) To get key (need-key):
(14:38:00) ((Dizzle) putserv "PRIVMSG Q :clearchan #gather-network.chat"
I have tried several thinks like, replacing the {} for [] and "". Butt that doenst work either.(14:38:00) ((Dizzle) To get key (need-key):
(14:38:00) ((Dizzle) putserv "PRIVMSG Q :clearchan $channel"
Can this be done, or should i let it slip ??