| |
|
| 12345678900987654321 - Sat Sep 17, 2011 11:19 am |
|
|
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
edit: forgot to add the channels are on diffrent networks, |
|
|
|
|
|
|
| 12345678900987654321 - Fri Dec 30, 2011 7:06 pm |
|
|
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 |
|
|
| Use:change dalnet to the network of your choice. |
|
|
|
| hixxy - Sun Jan 08, 2012 6:06 am |
|
|
Jethro wrote Use: 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:
Or use $safe by jaytea:
/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 |
|
|
| 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 |
|
|
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:
|
|
|
|
| DeeperStill - Tue Feb 14, 2012 6:02 pm |
|
|
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 |
|
|
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?
This will work across networks. |
|
|
|