Anope IRC Services  Version 1.8
Functions
bs_fantasy.c File Reference
#include "module.h"
Include dependency graph for bs_fantasy.c:

Go to the source code of this file.

Functions

static int do_fantasy (int argc, char **argv)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 41 of file bs_fantasy.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the hook, and tell anope about it.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 25 of file bs_fantasy.c.

References CORE, createEventHook(), do_fantasy(), EVENT_BOT_FANTASY, MOD_CONT, moduleAddAuthor(), moduleAddEventHook(), moduleAddVersion(), and moduleSetType().

static int do_fantasy ( int  argc,
char **  argv 
)
static

Handle all csmodeutils fantasy commands.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT or MOD_STOP

Definition at line 52 of file bs_fantasy.c.

References bot_raw_mode(), csmodeutil_::bsname, check_access(), cs_findchan(), csmodeutils, finduser(), ircdvars_::halfop, ircd, csmodeutil_::level, csmodeutil_::levelself, MOD_CONT, csmodeutil_::mode, user_::nick, and stricmp().

Referenced by AnopeInit().