Page 1 of 1

dont give op the first joiner

Posted: Tue Dec 20, 2005 4:31 pm
by ir2
hi everyone!

im using unreal3.2.3 with my own bot(written in vb) i dont know C language and i want to edit my unreal..

i dont want unreal gives op the first joiner in the channel... where i can edit this or where i can change?

thanks

(ps:sorry about my poor english)

Posted: Tue Dec 20, 2005 5:14 pm
by Solutech
When a #chan is created the creator gets the privs . Thats how it works . If you dont want want this happening then you need to stop temp #chans being created . You can do this through services as many have the ability to shut down the registration of channels .

For example in ircservices you have

Code: Select all

 # CSEnableRegister  [OPTIONAL]
    #     Allows the REGISTER command to be used.  This is usually a good
    #     thing, but if you don't want your users to be able to register
    #     channels, remove (or comment out) this directive.  Note, however,
    #     that Services administrators and the Services super-user will
    #     still be able to use the REGISTER command even if this directive
    #     is not given.

    #CSEnableRegister

    # CSRegisteredOnly  [OPTIONAL]
    #     Treats unregistered channels as if they were forbidden,
    #     disallowing access by ordinary users to any channels not
    #     explicitly registered with ChanServ.  IRC operators will be
    #     allowed to enter such channels, as they are for ordinary
    #     forbidden channels.  Note that this directive operates
    #     independently from the CSEnableRegister directive; if
    #     CSEnableRegister is commented out, non-Services-admin IRC
    #     operators will be able to join unregistered channels but will
    #     not be permitted to register them.

    CSRegisteredOnly
Set this way you cant register or create a channel at all .

That is one way to stop it .

Another way is create your #chans as you see fit and use this section of your unreal.conf

Code: Select all

4.26 - Allow Channel Block OPTIONAL 

Syntax:


allow channel {
	channel "<channel-mask>";
};

The allow channel block allows you to specify specific channels that users may join. The allow::channel directive specifies the wildcard mask of the channels which may be joined.

Example:


allow channel {
	channel "#something";
};


(read docs for how to implement this)

Drop in your channels and then put your bot in each channel . The bot is thus opped and your problem goes away unless your bot dc's .

Personally I use the first method as I dont see the sense in letting joe bloggs set up #porndvds-r-us on my server . If you want a channel you can come and ask for one and if I think its a decent prospect you get your channel.

Hope this helps or gives you more thought on the problem :) .

Posted: Tue Dec 20, 2005 6:05 pm
by ir2
thanks for your reply but im not using and kind of services

i have already deny all channels my bot sends a message every user joins the server and wants for login if login is success bot uses "SAJOIN" command to join users...

but if bot goes down official channell is being un-secured.. i must fix this if its possible thanks and regards

Posted: Tue Dec 20, 2005 6:31 pm
by Solutech
If you really dont want to use services there is a Module by W00t that can help you .

As noted by Syzop on the module page this sort of thing is best handled by services in the long run .

I also have to say that the way you have it setup is a bit strange . Why not just let users join normally as having a bot sajoin them to channels is a bit extreme .

Posted: Tue Dec 20, 2005 7:23 pm
by ir2
thanks for the module its gr8...

im using this system be-cause im using website's database and same memberships

/nick <nick-in-website>
/login <passwd-in-website>

simply cool?

Posted: Tue Dec 20, 2005 10:00 pm
by w00t
No problems, hope you enjoy it :).

Posted: Tue Dec 20, 2005 10:08 pm
by Solutech
Glad it solves your problem :) .

Im a die hard services nut , cant live without em but its each to their own :D .