mIRC Homepage
Posted By: MrCPU change topic on 2 networks - 22/01/03 12:33 PM
Hi,

I want to change the topic of the same channel on 2 networks.
If I or an other user change the topic of my channel, I want that the script reads this topic and set it on the other network.

How can I do this? I need some help.

Bye MrCPU
Posted By: vasil_michev Re: change topic on 2 networks - 22/01/03 12:40 PM
suppose you're only on those two networks:
/scid -a topic #chan the new topic
if you're on more than two you have to cheks $scid/$scon for that connection
So I sugges you take a lkook at /scid or $scid help and write it down yourself smile
If not wait for someone less lazy than me to write it down for you smile
Posted By: MrCPU Re: change topic on 2 networks - 22/01/03 01:49 PM
Hi,

thx for the fast answer, but I have one small problem.
My bot is not allways at OP state.
Now I change the topic with a ChanServ command, but there is the problem, that the bot sets the topic in the channel who is it change, again for the second time. :tongue:
Do you have a tip for me?
It is not important, but ... wink

Bye MrCPU
Posted By: Watchdog Re: change topic on 2 networks - 22/01/03 02:11 PM
You can't use CS to change the topic (as far as I aware, this would depend on your services) though ChanServ can reset it after a restart if you use the topiclock function.
Posted By: vasil_michev Re: change topic on 2 networks - 22/01/03 05:26 PM
well the answer is in $scid smile
put some alias that compares topics
like alias topic { if ($chan($1).topic !== $2-) !topic $1 $2- }
then use this alias with the scid command
/scid -a topic #chan the_new_topic
It's a very simple example, but it will do the job smile
© mIRC Discussion Forums