mIRC Home    About    Download    Register    News    Help

Topic Options
#47586 - 06/09/03 01:05 PM CTCP Reply
Deep3D Offline
Fjord artisan

Registered: 09/12/02
Posts: 476
Loc: Norway
How to ignore ctcp's? and just get the ping to reply?

Top
#47587 - 06/09/03 01:06 PM Re: CTCP Reply
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
/ignore -t *
_________________________
new username: tidy_trax

Top
#47588 - 06/09/03 01:09 PM Re: CTCP Reply
Deep3D Offline
Fjord artisan

Registered: 09/12/02
Posts: 476
Loc: Norway
yez,,, but i need the ping to reply and work.... but ignore all other ctcps..

grin

Top
#47589 - 06/09/03 01:25 PM Re: CTCP Reply
z00ey Offline
Pikka bird

Registered: 14/02/03
Posts: 10
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*
_________________________
return is the movement of sense.

Top
#47590 - 06/09/03 04:06 PM Re: CTCP Reply
Deep3D Offline
Fjord artisan

Registered: 09/12/02
Posts: 476
Loc: Norway
hmm, i don't get it to work..

Top
#47591 - 06/09/03 04:52 PM Re: CTCP Reply
J0ke Offline
Vogon poet

Registered: 10/01/03
Posts: 150
Loc: Latvia, LV
works fine here grin

Code:
ctcp *:*:*:{
  if ($1 == PING) { echo 4 -a PING check $2- }
  halt
}
 
_________________________
Go ahead, jump. 100,000 lemmings can't be wrong.

Top
#47592 - 06/09/03 06:18 PM Re: CTCP Reply
Deep3D Offline
Fjord artisan

Registered: 09/12/02
Posts: 476
Loc: Norway
it need's to block version, time and finger! help me!!

Top
#47593 - 06/09/03 06:31 PM Re: CTCP Reply
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
You can't block a ctcp version via a script.

Top
#47594 - 06/09/03 06:59 PM Re: CTCP Reply
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
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.
_________________________
Induced IRC
irc.induced.net

Top
#47595 - 06/09/03 07:02 PM Re: CTCP Reply
_D3m0n_ Offline
Hoopy frood

Registered: 11/12/02
Posts: 1527
Loc: Florida,USA
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.
_________________________
D3m0nnet.com

Top
#47596 - 06/09/03 07:11 PM Re: CTCP Reply
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
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.

Top
#47597 - 06/09/03 08:52 PM Re: CTCP Reply
_D3m0n_ Offline
Hoopy frood

Registered: 11/12/02
Posts: 1527
Loc: Florida,USA
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.
_________________________
D3m0nnet.com

Top