Anope IRC Services  Version 1.8
Functions
bs_fantasy_kick.c File Reference
#include "module.h"
Include dependency graph for bs_fantasy_kick.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 43 of file bs_fantasy_kick.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_kick.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 kick/k fantasy commands.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT or MOD_STOP

Definition at line 54 of file bs_fantasy_kick.c.

References chaninfo_::bi, bot_raw_kick(), chaninfo_::c, CA_KICK, CA_KICKME, check_access(), cs_findchan(), finduser(), is_on_chan(), is_protected(), MOD_CONT, myStrGetToken(), myStrGetTokenRemainder(), botinfo_::nick, user_::nick, and stricmp().

Referenced by AnopeInit().