mIRC Home    About    Download    Register    News    Help

Print Thread
Copy text from a channel to a different server #149064 13/05/06 03:43 PM
Joined: Dec 2005
Posts: 4
A
Artanis Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2005
Posts: 4
Some time ago I posted a similar question, someone replied that this script should do the job:

Code:
on *:TEXT:*:#channel:{

  if ($cid == 1) scid 2 msg #channel_2 < $nick > $1-

}
 

And it does, but it doesn't copy the text that I write.

The question is: is there any way to copy my own text to a channel in a different server/network?

Sorry for my bad English.

Re: Copy text from a channel to a different server #149065 13/05/06 04:03 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
That script is exploitable. Replace it with this:

Code:
on *:TEXT:*:#channel:{
  if ($cid == 1) {
    scid 2 
    msg #channel_2 < $nick > $1-
  }
}


To do your own text try this:

Code:
on *:input:#channel:{
  if ((!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) || ($ctrlenter)) && ($cid == 1) {
    scid 2
    msg #channel_2 < $me > $1-
  }
}

Re: Copy text from a channel to a different server #149066 13/05/06 06:20 PM
Joined: Dec 2005
Posts: 4
A
Artanis Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2005
Posts: 4
Thanks, It worked perfectly ^^

Re: Copy text from a channel to a different server #149067 16/05/06 07:05 AM
Joined: Apr 2003
Posts: 24
S
ShavedApe Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Apr 2003
Posts: 24
I would use this

scon -at1 if $!network == DalNet && $!me ison #channame { msg #channame $1- }

you need to change the network name of course and the channame

instead of

scid 2
msg #channel_2 < $nick > $1-

scid 2 means that you would always have to make a concious effort to connect to the networks in a specific

Re: Copy text from a channel to a different server #149068 16/05/06 07:08 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881