[IRCServices] Only chanserv

Georges Berscheid Georges at Berscheid.lu
Fri Nov 30 11:19:01 PST 2001


> > Ok, you have a point, the thing is that i don't want to any user can
> > register his nickname. Only certain operator will be registered and
> > no one else.
>
> No yet afaik, but I know that it has been talked about before.. I think
> it would be a useful feature to only allow IRC operators to register
> nicknames and channels, specially for websites which use IRC as a chat
> backend.
>

Hi,

simply add

    if (!is_oper_u(u))
        return;

to do_register() in nickserv.c (or chanserv.c) Maybe you should add a
notice() telling the user why he can't register a nick (or chan)

Georges