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

Go to the source code of this file.


static int do_suspend (User *u)
static int do_unsuspend (User *u)
static void myChanServHelp (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 54 of file cs_suspend.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 27 of file cs_suspend.c.

References c, CHANSERV, CORE, createCommand(), do_suspend(), do_unsuspend(), is_services_oper(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), and myChanServHelp().

static int do_suspend ( User u)

The /cs (un)suspend command.

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

Definition at line 76 of file cs_suspend.c.

References alog(), anope_cmd_global(), anope_cmd_kick(), c, CI_SUSPENDED, CI_VERBOTEN, cs_findchan(), do_kick(), EVENT_CHAN_SUSPENDED, findchan(), chaninfo_::flags, chaninfo_::forbidby, chaninfo_::forbidreason, ForceForbidReason, getstring, is_oper(), MOD_CONT, chaninfo_::name, channel_::name, user_::nick, notice_lang(), readonly, s_ChanServ, send_event(), sstrdup(), syntax_error(), channel_::users, and WallForbid.

Referenced by AnopeInit().

static int do_unsuspend ( User u)
static void myChanServHelp ( User u)

Add the help response to anopes /cs help output.

uThe user who is requesting help

Definition at line 63 of file cs_suspend.c.

References is_services_oper(), notice_lang(), and s_ChanServ.

Referenced by AnopeInit().