mIRC Home    About    Download    Register    News    Help

Print Thread
How can I hide the output from the user? #171241 21/02/07 06:51 PM
Joined: Feb 2007
Posts: 75
T
Trixar_za Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Feb 2007
Posts: 75
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


GigIRC Network Admin
irc.gigirc.com
Re: How can I hide the output from the user? [Re: Trixar_za] #171243 21/02/07 07:38 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
  }
}


Invision Support
#Invision on irc.irchighway.net
Re: How can I hide the output from the user? [Re: Riamus2] #171246 21/02/07 07:54 PM
Joined: Feb 2007
Posts: 75
T
Trixar_za Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Feb 2007
Posts: 75
It WORKS smile

Thanx Riamus2!


GigIRC Network Admin
irc.gigirc.com