Page 1 of 1

ChanServ OPER Message - Question!

Posted: Sun Oct 18, 2009 12:25 pm
by Stevie31
Hello all,
I have now an IRCD setting up and i have a problem.
When an IRC Operator joins the channel they get some flags or give flags by himself.
But, when an IRC Operator joins the channel i want a PUBLIC message from ChanServ. Something like this:

[ChanServ] IRC Operator joins the channel

Or

[ChanServ] IRC Operator <nickname> joins the channel

Do anyone know how to setup this or is there any script for this?

Thanks all!

Kind regards,

Steve Nelen
Warenhuis-Gaming
IRC.warenhuis-gaming.co.cc

Re: ChanServ OPER Message - Question!

Posted: Mon Jul 12, 2010 2:15 pm
by warg
This has nothing to do with UnrealIRCd. Consult the documentation and support mediums of your services.

Re: ChanServ OPER Message - Question!

Posted: Tue Sep 14, 2010 5:16 pm
by toXic
Hello..

nano -w modules/chanserv/main.c

Find;

Code: Select all

static int do_channel_join_check(const char *channel, User *user)
{
and, add, under the

Code: Select all

if (is_services_oper(user)) {
send_cmd(s_ChanServ, "PRIVMSG %s Oper  \2 %s \2 Join to Channel.", channel, user->nick);
}

codes.

Re: ChanServ OPER Message - Question!

Posted: Tue Sep 14, 2010 6:53 pm
by katsklaw
it helps if people know what package that code is for toxic and it's important to know that altering code will often void support, it's best to do as a module for packages that offer modularity. Such as Anope, and speaking of Anope it's very easy to hook user joins.

Also if it's for Anope, is_oper is better than Is_services_oper since now it's refering to all opers and not just those on the services oper list. It would also be a good idea to take Unreal's umode +H into account or you'll defeat the purpose of the usermode all together. It's also a good idea to let admins choose what message they wish to be displayed and add functionality for individual channels to turn the feature on/off.

Personally, i charge for custom coding for modules like this. This really wouldn't take a huge amount of time but who has time anymore? :(


Codes too.

Re: ChanServ OPER Message - Question!

Posted: Wed Sep 15, 2010 11:19 am
by siemreap
toXic wrote:Hello..

nano -w modules/chanserv/main.c

Find;

Code: Select all

static int do_channel_join_check(const char *channel, User *user)
{
and, add, under the

Code: Select all

if (is_services_oper(user)) {
send_cmd(s_ChanServ, "PRIVMSG %s Oper  \2 %s \2 Join to Channel.", channel, user->nick);
}

codes.
Hi toXic what services are you referring to? is it Anope? i can't find it in Anope, could you please do one for Anope thank you in advance.