Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: make a service to an operator  (Read 5325 times)

0 Members and 1 Guest are viewing this topic.

black-drag0n

  • Guest
make a service to an operator
« on: May 28, 2006, 04:10:48 PM »

hey hello....

how can i make that a service op hisself when i used a specified command like BotServ.

Code: [Select]
anope_cmd_mode();

i think this is the right command but i don't know to use it xD

thanX for ya help

[Bearbeitet am 28-5-2006 von black-drag0n]
Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #1 on: May 28, 2006, 06:22:43 PM »

anope_cmd_mode(s_BotServ, ci->name, "+o %s", s_BotServ);

thats just a simple example though

black-drag0n

  • Guest
(No subject)
« Reply #2 on: May 28, 2006, 07:14:15 PM »

ci->name is the channel, right?

but now i have a new question ^^
exists anywhere a tutorial for using databases with anope?
i want to use my own database for some things...

thanx for help ;)
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #3 on: May 28, 2006, 08:59:08 PM »

just look at an existing module.... one of the modules that come with anope is a great example. just take a look at hs_request... has everything you need to know about basic db usage.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up