I have been trying to get the bot to
ctcp a message to a nick for the last 2 hours
I thought this would do it:
putserv "ctcp $nick :newmessage"
so, what is the sceret?
thanks for any help given
CTCP's are actually a client program invention (probably mIRC), which are really regular private messages (PRIVMSG's)...Dedan wrote:I have been trying to get the bot to
ctcp a message to a nick for the last 2 hours
I thought this would do it:
putserv "ctcp $nick :newmessage"
so, what is the sceret?
thanks for any help given
It's hard to follow a "standard" when it was never originally standardized in the original RFC's...ppslim wrote: As for the origin of CTCP, nope, this wasn't a mIRC contraption.
It was invented as a method of automating / program a client to relact on somthing, exactly as it does for VERSIon and even DCC.
As such, allmost every script should be written to react through CTCP, however,t hat would be too easy and who follows a standard anyhow.
The point is, it WAS infact added as an after-thought, which you just stated yourself.ppslim wrote:Using PRIVMSG and NOTICE is pretty efficient.
The machanism is allready defined and clients need no changes to support it.
All RFC are only drafts. They are not standards, however, in most cases, they are followed as a official due to the ready available source.
IRC uses a barebones structure and has very few commands. Most of the commands that do exist are for server maintainance or administration.
Adding new commands for CTCP would have been like producing a whole new HTTP protocol just for dealing with encrypted trafic.
Instead, they used an existing layer available, and channeled it over encrypted links instead.