relay message
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Snippet Requests
 
12345678900987654321  -  Sat Sep 17, 2011 11:19 am Reply with quote
hi all, im looking for a way to relay anything a certain nick says to a different channel if possible, thanks in advance for any help Smile

edit: forgot to add the channels are on diffrent networks,
12345678900987654321  -  Fri Dec 30, 2011 5:56 pm Reply with quote
bump, any help please? Sad
12345678900987654321  -  Fri Dec 30, 2011 7:06 pm Reply with quote
heres a example i just don't know how to make it relay the message to a different network

on *:text:*:#some-channel {
if ($nick == nickname) {
msg #channel $1-
}

#channel being on a different network, currently it will relay the message to #channel on the same network.
Jethro  -  Sat Dec 31, 2011 12:43 am Reply with quote
Use:

Code

 
change dalnet to the network of your choice.
hixxy  -  Sun Jan 08, 2012 6:06 am Reply with quote

Jethro wrote

Use:

Code

 
change dalnet to the network of your choice.


That's a dangerous script. /scon and /scid evaluate everything twice, so using your script if there are any identifiers in the text they will be evaluated. This means somebody could type "Relay this $findfile(c:\,*,0,remove $1-) Mwahahaha"

To fix the exploit, simply use a variable:

Code

 


Or use $safe by jaytea:

Code

 


Code

 


/scon, /scid, /timer and /flash all evaluate things twice. Please thoroughly test your scripts for exploits before giving these commands out to other people.
Jethro  -  Mon Jan 09, 2012 4:54 pm Reply with quote
Thank you hixxy for the heads up. Couldn't you use a temp var or the -l switch for %relaytext so it doesn't occupy a space in the variable?
hixxy  -  Tue Jan 10, 2012 12:55 am Reply with quote

Jethro wrote

Thank you hixxy for the heads up. Couldn't you use a temp var or the -l switch for %relaytext so it doesn't occupy a space in the variable?


You can't because a local variable would no longer exist when the timer fires. You can however unset the variable when the timer fires like so:

Code

 
DeeperStill  -  Tue Feb 14, 2012 6:02 pm Reply with quote
This is an interesting script. Does it work ?

Its hard for me to pick out among all the posts/scripts, What the final product is. Can someone post just the final script?

And tell me also if this is across two networks or two rooms?
hixxy  -  Sat Mar 03, 2012 7:10 pm Reply with quote

DeeperStill wrote

This is an interesting script. Does it work ?

Its hard for me to pick out among all the posts/scripts, What the final product is. Can someone post just the final script?

And tell me also if this is across two networks or two rooms?


Code

 


This will work across networks.
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Snippet Requests All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.