[IRCServices Coding] ServBot Replies

Craig McLure Craig at frostycoolslug.com
Sat Aug 27 08:25:24 PDT 2005


Anything is possible.. it just isn't easy.


Services uses notice() to send notices, however as far as i'm aware its 
also hard coded in send_raw()

A Module could use cb_set to capture and store the option, however in 
this case you would probably be better off modifying the user struct to 
store this (This also potentially means you will need to modify 
databases etc.)

As the FAQ states, IRCServices wasn't designed with this functionality, 
and conciquently, theres no real code to support it without making a few 
fundimental changes to the way services works.

Other than this, i can't see a way to change it.

/****************************************
  *     Craig "FrostyCoolSlug" McLure
  *       Craig at FrostyCoolSlug.com
  * InspIRCd   - http://www.inspircd.org
  * ChatSpike  - http://www.chatspike.net
  ****************************************/

Randall J. Berry wrote:
>    Hi All,
> First.. Yes I've read the FA*Q
> *
> 
> <--Begin Paste
> C.7. How can I make Services send replies using PRIVMSG (/msg) instead 
> of NOTICE?
> You can't. RFC 1459 (the IRC protocol definition) requires that all 
> automated clients send all replies using NOTICE rather than PRIVMSG, and 
> Services follows that requirement. If you want to change how Services 
> replies appear in your IRC client, change your client's settings.
> End Paste-->
> 
> I'd like to know how I can change the code to make ***Serv to reply in 
> PRIVMSG/NOTICE as per user request. I understand the reason for making 
> the default per RFC standard but I've seen some services that still use 
> MSG and some that allow the user to choose how they want the bot to 
> reply. Beyond IRC services is one of those networks that comes to mind. 
> Unfortunately their source is not available. They allow you to use a SET 
> RESPONSE MSG/NOTICE Granted, the aliasing '/***Serv somecommand' instead 
> of having to use the old '/msg ***Serv somecomand' does make it easier 
> but it's still nice to have a choice. There are a few other nice 
> features with their services as well. Some that I do not see on any 
> other service.
> 
> Is this possible?
> TIA
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://lists.ircservices.za.net/mailman/listinfo/ircservices-coding
> 
>