I am writing a script that encrypts the chat in a channel.
While i've got all the maths done and the encryption works (yay), I'm having trouble with making it "pretty".

I want to be able to stop all mIRC's default output in the channel being encrypted, including normal chat. Is this possible? Cos I can't get it to work.

I can halt my own chat:
Code:
on *:INPUT:#testchan:{
  (encyption code etc)
  halt
}


However, what I thought would stop chat from other users doesn't.
This is what the code looks like at the moment:
Code:
on *:TEXT:*:#testchan: {
  echo #testchan $timestamp < $+ $cnick($nick).colour $+ $nick $+ > $macode(2,$1-)
  halt
}


What SHOULD happen there (so far as I can tell) is that the decryption line should echo out the decrypted chat to the channel window, and the halt command should stop the encrypted chat from showing.
What ACTUALLY happens is that the encrypted chat comes up, and then the decrypted chat comes up immediately below it.

Can anyone tell me what I've done wrong, or if it is actually possible to stop chat from showing?
Please note, to check none of my other scripts were interfering, I installed a clean version of mIRC on another PC and tried it. Same result.

Last edited by meglamaniac; 23/12/03 06:10 PM.