#include "../localuser/localuser.h"
#include "../lib/irc_string.h"
#include "../lib/strlfunc.h"
+#include "../lib/version.h"
#include "noperserv.h"
#include "noperserv_db.h"
#include "noperserv_hooks.h"
#include <string.h>
#include <stdarg.h>
+MODULE_VERSION("$Id: noperserv.c 786 2007-05-13 20:22:35Z newserv $")
+
#define FLAGBUFLEN 100
#define NO_FOUND_NICKNAME 1
const flag no_noticeflags[] = {
{ 'm', NL_MANAGEMENT }, /* hello, password, userflags, noticeflags */
{ 't', NL_TRUSTS }, /* trust stuff... */
- { 'k', NL_KICKS }, /* KICK command */
- { 'K', NL_KILLS }, /* KILL command */
+ { 'k', NL_KICKKILLS }, /* KICK/KILL commands */
+ { 'I', NL_MISC }, /* misc commands */
{ 'g', NL_GLINES }, /* GLINE commands */
{ 'h', NL_HITS }, /* Where a gline or kill is set automatically by the bot */
{ 'c', NL_CLONING }, /* Clone detection */
{ 'O', NL_OPERING }, /* when someone opers */
{ 'n', NL_NOTICES }, /* turn off to receive notices instead of privmsgs */
{ 'A', NL_ALL_COMMANDS }, /* all commands sent */
- { 'I', NL_MISC }, /* misc stuff */
{ '\0', 0 }
};
" +t: Trust queue worker\n"
" Additional flags may show up in SHOWCOMMANDS but are not userflags as such:\n"
" +r: Authed user\n"
- " +d: Registered NOperserv user\n"
+ " +R: Registered NOperserv user\n"
+ " +O: Must be /OPER'ed\n"
" +L: Legacy command\n"
);
registercontrolhelpcmd("noticeflags", NO_ACCOUNT, 1, &noperserv_noticeflags,
" Flags:\n"
" +m: Management (hello, password, userflags, noticeflags)\n"
" +t: Trusts\n"
- " +k: KICK command\n"
- " +K: KILL command\n"
+ " +k: KICK/KILL commands\n"
" +g: GLINE commands\n"
" +h: Shows when glines are played automatically (hits)\n"
" +c: Clone information\n"
" +b: BROADCAST commands\n"
" +o: Operation commands, such as insmod, rmmod, die, etc\n"
" +O: /OPER\n"
- " +I: Misc commands (resync)\n"
+ " +I: Misc commands (resync, etc)\n"
" +n: Sends notices instead of privmsgs\n"
" +A: Every single command sent to the service (spammy)\n"
);
/* @test */
int noperserv_hello(void *sender, int cargc, char **cargv) {
- char *newaccount;
+ char *newaccount = NULL;
no_autheduser *au;
int i;
nick *np = (nick *)sender, *np2, *target = NULL;