Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Services  (Read 4331 times)

0 Members and 1 Guest are viewing this topic.

Phil Lavin

  • Team
  • *
  • Offline Offline
  • Posts: 4
    • http://www.cyberchatnet.com
Services
« on: July 02, 2008, 02:03:15 AM »

Is there a is_admin or is_superadmin or is_sericeadmin/ If so, what file do you store it in?
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #1 on: July 02, 2008, 11:19:19 AM »

everything is stored in binary databases... which are not editable with a text editor.
and the only thing that is stored is whether a user is services oper or services admin... those are the only levels anope knows about (besides root which is in the config)
superadmin is something a services root admin can enable (if it s enabled in the conf) which gives him founder to all channels.. it s a runtime var, nothing in a db.

to disable superadmin simply change the setting in the services.conf, to disable a command, simply unload the commands module. the core is modulized which means that most commands can be easily unloaded.
further customization can be achieved through the use of modules.

[Edited on 2-7-2008 by Viper]
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

katsklaw

  • Guest
(No subject)
« Reply #2 on: July 02, 2008, 09:24:12 PM »

Everything you need to code modules for Anope are located at http://dev.anope.org/ The only thing that is not included is tutorials on how to actually code in C. If you are interested in writing modules, you will need to learn C. You can't expect us to take valuable time out of our already busy schedule to hold your hand every step of the way. We are here to provide IRC Services and support to the normal user, not teach coding classes.

As far as examples go, the source code is completely full of examples of nearly anything you'd want to do. IF the core doesn't have an example the module site probably does. This is one of those things that you will have to learn on your own.

Your last thread was locked because of this statement: "you can not except everyone to know or learn c code or force a individual to learn it to work around your code." We don't expect users to be in the code at all, those that DO get into the code and make changes are considered experts as far as we are concerned and they lose all support from us .. period. We do not and can not help debug your mistakes, we simply do not have the time nor the interest. If you want to dabble in the source code, then by damned you are going to have to learn how! We don't "force" anyone into the source code, quite the reverse, we expect people to stay OUT of the code.

Good luck writing your modules.
Logged
Pages: [1]   Go Up