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

Go to the source code of this file.


static int do_chanlist (User *u)
static void myOperServHelp (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 50 of file os_chanlist.c.

int AnopeInit ( int  argc,
char **  argv 

Create the command, and tell anope about it.

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

Definition at line 29 of file os_chanlist.c.

References c, CORE, createCommand(), do_chanlist(), is_services_oper(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), and OPERSERV.

static int do_chanlist ( User u)

The /os chanlist command.

uThe user who issued the command
MOD_CONTto continue processing other modules, MOD_STOP to stop processing.

Definition at line 70 of file os_chanlist.c.

References anope_get_private_mode(), anope_get_secret_mode(), c, chan_get_modes(), chanlist, user_::chans, finduser(), match_wild_nocase(), MOD_CONT, channel_::mode, channel_::name, user_::u_chanlist::next, channel_::next, user_::nick, notice_lang(), s_OperServ, stricmp(), channel_::topic, and channel_::usercount.

Referenced by AnopeInit().

static void myOperServHelp ( User u)

Add the help response to anopes /os help output.

uThe user who is requesting help

Definition at line 60 of file os_chanlist.c.

References notice_lang(), and s_OperServ.

Referenced by AnopeInit().