mIRC Homepage
Posted By: Deep3D CTCP Reply - 06/09/03 12:05 PM
How to ignore ctcp's? and just get the ping to reply?
Posted By: pheonix Re: CTCP Reply - 06/09/03 12:06 PM
/ignore -t *
Posted By: Deep3D Re: CTCP Reply - 06/09/03 12:09 PM
yez,,, but i need the ping to reply and work.... but ignore all other ctcps..

grin
Posted By: z00ey Re: CTCP Reply - 06/09/03 12:25 PM
try something like:
Code:
ctcp *:*:*: {
if ($1 == PING) { 
blah
}
}

..should halt all other ctcps and just execute "blah" when you re pinged.
(if the imaginary "else halt" that mirc should "add" doesn t work for some reasons just try
Code:
...
if ($1 != PING) { halt } 
else { 
blah
}
...

*shrugs*
Posted By: Deep3D Re: CTCP Reply - 06/09/03 03:06 PM
hmm, i don't get it to work..
Posted By: J0ke Re: CTCP Reply - 06/09/03 03:52 PM
works fine here grin

Code:
ctcp *:*:*:{
  if ($1 == PING) { echo 4 -a PING check $2- }
  halt
}
 
Posted By: Deep3D Re: CTCP Reply - 06/09/03 05:18 PM
it need's to block version, time and finger! help me!!
Posted By: codemastr Re: CTCP Reply - 06/09/03 05:31 PM
You can't block a ctcp version via a script.
Posted By: Watchdog Re: CTCP Reply - 06/09/03 05:59 PM
Code:
CTCP *:*:*:{
  if ($1 == PING) {
    echo $colour(ctcp) -ta PING $duration($calc($ctime - $2-))
  }
  else {
    halt
  }
  haltdef
}
This blocks all but the standard version reply which is flood-protected anyway.
Posted By: _D3m0n_ Re: CTCP Reply - 06/09/03 06:02 PM
well no u cant block a version via a script aside from ignoring it but ......

i have a script that will infact do what the user is asking ... but i will not post it due to the fact it can also be used to alter a version reply.
Posted By: codemastr Re: CTCP Reply - 06/09/03 06:11 PM
Yes, there are ways it could be done, but they are sorta trickery. I know of one way that will work, but only in 6.1.
Posted By: _D3m0n_ Re: CTCP Reply - 06/09/03 07:52 PM
actually ive used it in several versions of mirc and not at all in 6.1 it is a purely scripted method with no dlls of altering default ctcp events. if youd like a look at the method its dirived from a scriptlet i found in mircscripts site as an alternative to the motfv dll.
© mIRC Discussion Forums