mIRC Home    About    Download    Register    News    Help

Print Thread
Replacing Text with Another #80815 27/04/04 03:12 AM
Joined: Mar 2004
Posts: 12
W
Want Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Mar 2004
Posts: 12
ok im making a encoder/decoder and now i need to know how to replace the incoming encrypted text from somebody to just dispay the decode and nothing else here is an example
right now it does this:

<TheGreatPope> 31173 >21~ 1~ 9 >5~> 4%* >25 <1*7 <5~~935 8%9*6
<TheGreatPope@Decoded> this is a test for the mirc message board

I want it to just display this:

<TheGreatPope@Decoded> this is a test for the mirc message board

Anybody got any ideas or suggestions? mirc 6.14

Re: Replacing Text with Another #80816 27/04/04 04:52 AM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
Code:
on ^*:TEXT:*:*:{
  (insert code here)
  haltdef
}


The ^ allows you to use haltdef to "halt" the "default" text output
The best way you should do it is to make it check if it's encoded text, and if so, then "haltdef" after it echos the decoded text
but if not, then do NOT haltdef

smile

Re: Replacing Text with Another #80817 27/04/04 05:09 AM
Joined: Mar 2004
Posts: 12
W
Want Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Mar 2004
Posts: 12
thanks for the advice ill try it and yes it looks for 31173 for decoding so i should be set

Re: Replacing Text with Another #80818 27/04/04 05:23 AM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
In that case...
Code:
on ^*:TEXT:*:*:{
  if ( $1 != 31173 ) { return }
  haltdef
  ...code here to decode the text and echo it...
}