mIRC Homepage
Posted By: littlecramp Suppress ctcpreply message? - 12/06/03 09:33 AM
When someone do a unknown ctcp to me, I've it
ctcpreply $nick "Message here". But I do not want the reply to be reflected in the status or active window. I just want it not to appear!
Posted By: Adrenalin Re: Suppress ctcpreply message? - 12/06/03 12:33 PM
on *:CTCPREPLY:*: If (($1 != ping) && ($1 != time) && ($1 != version)) { haltdef }

Put that in the remote section (Alt+r)
Posted By: saxon Re: Suppress ctcpreply message? - 12/06/03 01:24 PM
Try adding a dot before ctcpreply:

/.ctcpreply $nick "Message here".

(the forward slash isn't required).
Posted By: littlecramp Re: Suppress ctcpreply message? - 12/06/03 03:09 PM
Thanks for your reply. What abt something like
"abc Target change too fast. Please wait 20 seconds"?

Posted By: saxon Re: Suppress ctcpreply message? - 12/06/03 04:52 PM
I have no idea how to avoid it or what causes it, sorry.

It's a message from the server, I presume it's not a notice; So to catch it, you might be able to use this:

raw PROP:*Target change too fast*:{ commands }

Or if it has a specific RAW numeric, use that.

Before repeating your actions, you should probably wait the 20 seconds like it says.
It's probably not a good idea to halt this text, otherwise you can't see what's happening...
Posted By: Online Re: Suppress ctcpreply message? - 12/06/03 09:59 PM
If I'm not mistaken, the server reports this error when you act like a spambot and send messages to too many nicknames or channels at once. That's probably a raw, and /debug @window can catch it.
Posted By: littlecramp Re: Suppress ctcpreply message? - 13/06/03 05:03 AM
Spam? hey, XXX Target change too fast. Please wait 65 seconds. The XXX refer to other user and not me!
Posted By: andymps Re: Suppress ctcpreply message? - 13/06/03 05:25 AM
alot of the time you can get it if u have alot of on connect thing such as logins and auto join channels
Posted By: Jerk Re: Suppress ctcpreply message? - 13/06/03 05:29 AM
From features.txt (distributed with undernet's ircd ircu2.10.10)

CPRIVMSG/CNOTICE:
Version: unknown, but since 2.10.07

CPRIVMSG/CNOTICE are a way around target limiting in recent undernet
servers. Undernet servers prevent you from sending messages to too many
people at once in an attempt to help cut down the amount of spam that
occurs on the network. Because there are several situations where you want
to send messages to lots of people that are on the same channel as you
(autogreet's and gamebots for example) an 'escape' was made in the form
of CPRIVMSG/CNOTICE. These allow you to send a privmsg/notice to a person
on a common channel if you are op'd (@'d) without incuring a target
penalty. If you see 'Target changed too fast' messages, you should
probably be using these commands.

Syntax:
CPRIVMSG #channel nick :Message
CNOTICE #channel nick :Message

Results are the same as for 'PRIVMSG' and 'NOTICE' respectively.

Target limiting:
Version: Recent 2.10.07ish at least.

Undernet prevents you from changing 20 targets per 2 minutes. A target
is a 'Nick' or 'channel'. This is to prevent spam. If you message more
than 20 people or join more than 20 channels in two minutes then you'll
start getting 'Target change too fast' and will have to wait before you
can start talking. See CPRIVMSG/CNOTICE above for information on how to
avoid this.

Additional Numerics:
ERR_TARGETTOOFAST 349
Posted By: littlecramp Re: Suppress ctcpreply message? - 13/06/03 05:40 AM
How to use?
Posted By: Jerk Re: Suppress ctcpreply message? - 13/06/03 06:13 AM
You either not change targets (destinations for a privmsg or notice) so fast or you use cnotice and cprivmsg. I don't really spend much time on networks using ircdu (like undernet) so I never use them. Perhaps someone on this forum is more familiar with the commands or you can seek help in one of their help channels.

If you simply want to supress the error then use a raw.

raw 349:*:halt
© mIRC Discussion Forums