mIRC Homepage
Posted By: Trixar_za How can I hide the output from the user? - 21/02/07 06:51 PM
Hey, just wonder if there is a way I can alter my code so that it hides the outputed text from the user and only show the decoded text.

Code:
on *:input:?:{
  %preencode = $1-
  %encoded = $encode($1-,m) 
  %trixarian = $qt(%encoded)
  echo -a 7You Said:3 %preencode
  msg $active $noqt(%trixarian)
  halt
}
on *:TEXT:*:?:{ if $2 == $null {
    %decoded = $decode($1,m) 
    %notreallyhere = $qt(%decoded)
    echo $nick 7Decrypted:3 $noqt(%notreallyhere)
    halt
  }
  else { halt }
  halt
}


Thanx in advance smile
Posted By: Riamus2 Re: How can I hide the output from the user? - 21/02/07 07:38 PM
Code:
on *:input:?:{
  var %preencode = $1-, %encoded = $encode($1-,m), %trixarian = $qt(%encoded)
  echo -a 7You Said:3 %preencode
  .msg $active $noqt(%trixarian)
  halt
}
on ^*:TEXT:*:?:{
  if ($2 == $null) {
    var %decoded = $decode($1,m), %notreallyhere = $qt(%decoded)
    echo $nick 7Decrypted:3 $noqt(%notreallyhere)
    haltdef
  }
}
It WORKS smile

Thanx Riamus2!
© mIRC Discussion Forums