#include "module.h"
Go to the source code of this file.
Functions | |
| void | AnopeFini (void) |
| int | AnopeInit (int argc, char **argv) |
| int | do_sgline (User *u) |
| void | myOperServHelp (User *u) |
| int | sgline_list (int number, SXLine *sx, User *u, int *sent_header) |
| int | sgline_list_callback (SList *slist, int number, void *item, va_list args) |
| int | sgline_view (int number, SXLine *sx, User *u, int *sent_header) |
| int | sgline_view_callback (SList *slist, int number, void *item, va_list args) |
| void AnopeFini | ( | void | ) |
Unload the module
Definition at line 57 of file os_sgline.c.
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 34 of file os_sgline.c.
References CORE, createCommand(), do_sgline(), ircd, is_services_oper(), MOD_CONT, MOD_STOP, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), OPERSERV, and ircdvars_::sgline.
| int do_sgline | ( | User * | u | ) |
The /os sgline command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 79 of file os_sgline.c.
References add_sgline(), anope_cmd_global(), slist_::count, dotime(), slist_::list, match_wild_nocase(), MOD_CONT, user_::nick, notice_lang(), readonly, s_OperServ, sgline_list(), sgline_list_callback(), sgline_view(), sgline_view_callback(), SGLineExpiry, sglines, slist_clear(), slist_delete(), slist_delete_range(), slist_enum(), slist_indexof(), snprintf(), stricmp(), strspn(), syntax_error(), and WallOSSGLine.
Referenced by AnopeInit().
| void myOperServHelp | ( | User * | u | ) |
Add the help response to anopes /os help output.
| u | The user who is requesting help |
Definition at line 337 of file os_sgline.c.
References sxline_::mask, notice_lang(), sxline_::reason, and s_OperServ.
Referenced by do_sgline(), and sgline_list_callback().
| int sgline_list_callback | ( | SList * | slist, | |
| int | number, | |||
| void * | item, | |||
| va_list | args | |||
| ) |
Definition at line 301 of file os_sgline.c.
References sxline_::by, expire_left(), sxline_::expires, sxline_::mask, user_::na, notice_lang(), sxline_::reason, s_OperServ, sxline_::seton, and strftime_lang().
Referenced by do_sgline(), and sgline_view_callback().
| int sgline_view_callback | ( | SList * | slist, | |
| int | number, | |||
| void * | item, | |||
| va_list | args | |||
| ) |
1.5.1-20070107