#include "module.h"
Go to the source code of this file.
Functions | |
| int | do_sqline (User *u) |
| int | sqline_view_callback (SList *slist, int number, void *item, va_list args) |
| int | sqline_view (int number, SXLine *sx, User *u, int *sent_header) |
| int | sqline_list_callback (SList *slist, int number, void *item, va_list args) |
| int | sqline_list (int number, SXLine *sx, User *u, int *sent_header) |
| void | myOperServHelp (User *u) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
| void AnopeFini | ( | void | ) |
Unload the module
Definition at line 56 of file os_sqline.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_sqline.c.
References c, CORE, createCommand(), do_sqline(), ircd, is_services_oper(), MOD_CONT, MOD_STOP, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), OPERSERV, and ircdvars_::sqline.
| int do_sqline | ( | User * | u | ) |
The /os sqline command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 78 of file os_sqline.c.
References add_sqline(), anope_cmd_global(), ircdvars_::chansqline, slist_::count, dotime(), ircd, slist_::list, match_wild_nocase(), MOD_CONT, user_::nick, notice_lang(), readonly, s_OperServ, slist_clear(), slist_delete(), slist_delete_range(), slist_enum(), slist_indexof(), snprintf(), sqline_list(), sqline_list_callback(), sqline_view(), sqline_view_callback(), SQLineExpiry, sqlines, stricmp(), strspn(), syntax_error(), and WallOSSQLine.
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 330 of file os_sqline.c.
References sxline_::mask, notice_lang(), sxline_::reason, and s_OperServ.
Referenced by do_sqline(), and sqline_list_callback().
| int sqline_list_callback | ( | SList * | slist, | |
| int | number, | |||
| void * | item, | |||
| va_list | args | |||
| ) |
Definition at line 294 of file os_sqline.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_sqline(), and sqline_view_callback().
| int sqline_view_callback | ( | SList * | slist, | |
| int | number, | |||
| void * | item, | |||
| va_list | args | |||
| ) |
1.5.7.1