mIRC Home    About    Download    Register    News    Help

Print Thread
#7801 22/01/03 12:33 PM
Joined: Jan 2003
Posts: 11
M
MrCPU Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2003
Posts: 11
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

Joined: Dec 2002
Posts: 212
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 212
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


And all I need now is intellectual intercourse, a soul to dig the hole much deeper
Joined: Jan 2003
Posts: 11
M
MrCPU Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2003
Posts: 11
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

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.

Joined: Dec 2002
Posts: 212
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 212
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


And all I need now is intellectual intercourse, a soul to dig the hole much deeper

Link Copied to Clipboard