mIRC Homepage

on input hide results

Posted By: danielboom

on input hide results - 21/07/21 11:01 PM

* @PiNo (chatlaplat@PiNo.La.Plata) Quit (Ping timeout: 187 seconds)
601
<~VerDuGo> !sp Copperfield
<~VerDuGo> !sl Copperfield
* +Copperfield (chatlaplat@B05E961E.E462EEFF.194EAA6E.IP) has left #ayuda

On *:input:*: {
if $1 iswm !ifo { echo -a 0,4 cac222a | whois $2 }
if $1 iswm !sp { sapart $2 # }
if $1 iswm !sj { sajoin $2 # }
}

how can i hide the !sp , please help
Posted By: Epic

Re: on input hide results - 22/07/21 01:27 PM

If I understand your question correctly, then you want to hide the use of these commands from being displayed on the channels.
In this case, you need to install the "halt" command at the end of the script. More on this here: https://en.wikichip.org/wiki/mirc/commands/halt or https://www.mirc.com/help/html/index.html?halting_text.html

Code
on *:INPUT:*:{
  if ($1 == !ifo) { .echo -a 00,04 cac222a  | .whois $2 }
  if ($1 == !sj) { .sajoin $2 $3 }
  if ($1 == !sp) { .sapart $2 $3 }
  halt
}
Posted By: Epic

Re: on input hide results - 23/07/21 01:20 PM

*** There was an error in the previous post, but due to the long moderation (check), it was not possible for me to fix this error. I ask the forum moderator to delete my previous post.

danielboom - If I understand your question correctly, then you want to hide the use of these commands from being displayed on the channels.
In this case, you need to add the "halt" at the end of each condition to execute your commands:

Code
on *:INPUT:*:{
  if ($1 == !ifo) { .echo -at 08,06 Whois:00 $2  | .whois $2 | halt }
  if ($1 == !sj) { .sajoin $2 #channel | halt }
  if ($1 == !sp) { .sapart $2 #channel | halt }
}

For more details see here: https://en.wikichip.org/wiki/mirc/commands/halt or https://www.mirc.com/help/html/halting_text.html

© 2021 mIRC Discussion Forums