mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 12
F
Fey Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Sep 2004
Posts: 12
Hello, i've got a little problem.

Code:

on *:text:*:#channel:{
  scid 1 msg #otherchanOthernetowrk [ $+ $chan $+ 4/ $+ $acc($chan,$nick) $+ > $1 
}
  

The problem is that, if someone on that channel types anything starting with a / or // mirc is glad to execute the code, enclosing $1- in $eval($1-,1) doesn't help. So, how can i be sure mirc will send the message from other network to my network, without executing any possible code, nor evaluating identifiers?




Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Either
Code:
on *:text:*:#channel:{
  scid 1 
  msg #otherchanOthernetowrk [ $+ $chan $+ 4/ $+ $acc($chan,$nick) $+ > $1 
}
or
Code:
on *:text:*:#channel:{
  var %temp = [ $+ $chan $+ 4/ $+ $acc($chan,$nick) $+ > $1
  scid 1 msg #otherchanOthernetowrk % $+ temp
}


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Sep 2004
Posts: 12
F
Fey Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Sep 2004
Posts: 12
Thank you shocked


Link Copied to Clipboard