Anope IRC Services

Anope Development => Modules => Topic started by: black-drag0n on May 28, 2006, 04:10:48 PM

Title: make a service to an operator
Post by: black-drag0n 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]
Title:
Post by: Tom65789 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
Title:
Post by: black-drag0n 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 ;)
Title:
Post by: Jan Milants 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.