mIRC Home    About    Download    Register    News    Help

Print Thread
CTCP Reply #47586 06/09/03 12:05 PM
Joined: Dec 2002
Posts: 476
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 476
How to ignore ctcp's? and just get the ping to reply?

Re: CTCP Reply #47587 06/09/03 12:06 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
/ignore -t *


new username: tidy_trax
Re: CTCP Reply #47588 06/09/03 12:09 PM
Joined: Dec 2002
Posts: 476
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 476
yez,,, but i need the ping to reply and work.... but ignore all other ctcps..

grin

Re: CTCP Reply #47589 06/09/03 12:25 PM
Joined: Feb 2003
Posts: 10
Z
z00ey Offline
Pikka bird
Offline
Pikka bird
Z
Joined: Feb 2003
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.
Re: CTCP Reply #47590 06/09/03 03:06 PM
Joined: Dec 2002
Posts: 476
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 476
hmm, i don't get it to work..

Re: CTCP Reply #47591 06/09/03 03:52 PM
Joined: Jan 2003
Posts: 150
J
J0ke Offline
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
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.
Re: CTCP Reply #47592 06/09/03 05:18 PM
Joined: Dec 2002
Posts: 476
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 476
it need's to block version, time and finger! help me!!

Re: CTCP Reply #47593 06/09/03 05:31 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
You can't block a ctcp version via a script.

Re: CTCP Reply #47594 06/09/03 05:59 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
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
Re: CTCP Reply #47595 06/09/03 06:02 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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
Re: CTCP Reply #47596 06/09/03 06:11 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
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.

Re: CTCP Reply #47597 06/09/03 07:52 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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