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

Go to the source code of this file.

Macros

#define AUTHOR   "Anope"
 
#define VERSION   VERSION_STRING
 

Functions

int my_nick (char *source, int ac, char **av)
 
int my_save (int argc, char **argv)
 
int do_moo (int argc, char **argv)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Macro Definition Documentation

#define AUTHOR   "Anope"

Simple module to show the usage of event messages and hooks This module is an example, and has no useful purpose!

Please visit http://modules.anope.org for useful modules!

Definition at line 11 of file events.c.

Referenced by AnopeInit().

#define VERSION   VERSION_STRING

Definition at line 12 of file events.c.

Referenced by AnopeInit().

Function Documentation

void AnopeFini ( void  )

Definition at line 38 of file events.c.

int AnopeInit ( int  argc,
char **  argv 
)
int do_moo ( int  argc,
char **  argv 
)

command to be called when a EVENT_BOT_FANTASY event is recived.

Parameters
argcThe paramater count for this event.
argv[0]The cmd used.
argv[1]The nick of the command user.
argv[2]The channel name the command was used in.
argv[3]The rest of the text after the command.
Returns
MOD_CONT or MOD_STOP

Definition at line 70 of file events.c.

References anope_cmd_privmsg(), chaninfo_::bi, cs_findchan(), MOD_CONT, MOD_STOP, chaninfo_::name, botinfo_::nick, and stricmp().

Referenced by AnopeInit().

int my_nick ( char *  source,
int  ac,
char **  av 
)

Definition at line 43 of file events.c.

References alog(), and MOD_CONT.

Referenced by AnopeInit(), and do_drop().

int my_save ( int  argc,
char **  argv 
)

Definition at line 49 of file events.c.

References alog(), EVENT_START, MOD_CONT, and stricmp().

Referenced by AnopeInit().