mirror of
https://github.com/anope/anope.git
synced 2026-06-30 03:56:38 +02:00
Remove rootmodeonid, opermodeonid, adminmodeonid - unused, and utterly useless/bad.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2238 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -456,9 +456,6 @@ struct ircdvars_ {
|
||||
const char *adminset; /* Mode to set for admin */
|
||||
const char *adminunset; /* Mode to unset for admin */
|
||||
const char *modeonreg; /* Mode on Register */
|
||||
const char *rootmodeonid; /* Mode on ID for ROOTS */
|
||||
const char *adminmodeonid; /* Mode on ID for ADMINS */
|
||||
const char *opermodeonid; /* Mode on ID for OPERS */
|
||||
const char *modeonunreg; /* Mode on Unregister */
|
||||
const char *modeonnick; /* Mode on nick change */
|
||||
int sgline; /* Supports SGline */
|
||||
|
||||
@@ -105,8 +105,7 @@ class NSGetPass : public Module
|
||||
**/
|
||||
void myNickServHelp(User *u)
|
||||
{
|
||||
if (is_services_admin(u))
|
||||
notice_lang(s_NickServ, u, NICK_HELP_CMD_GETPASS);
|
||||
notice_lang(s_NickServ, u, NICK_HELP_CMD_GETPASS);
|
||||
}
|
||||
|
||||
MODULE_INIT("ns_getpass", NSGetPass)
|
||||
|
||||
@@ -167,12 +167,6 @@ class CommandNSGroup : public Command
|
||||
{
|
||||
len = strlen(ircd->modeonreg);
|
||||
strncpy(modes, ircd->modeonreg, 512);
|
||||
if (ircd->rootmodeonid && is_services_root(u))
|
||||
strncat(modes, ircd->rootmodeonid, 512 - len);
|
||||
else if (ircd->adminmodeonid && is_services_admin(u))
|
||||
strncat(modes, ircd->adminmodeonid, 512 - len);
|
||||
else if (ircd->opermodeonid && is_services_oper(u))
|
||||
strncat(modes, ircd->opermodeonid, 512 - len);
|
||||
if (ircd->tsonmode)
|
||||
common_svsmode(u, modes, tsbuf);
|
||||
else
|
||||
|
||||
@@ -82,12 +82,6 @@ class CommandNSIdentify : public Command
|
||||
{
|
||||
len = strlen(ircd->modeonreg);
|
||||
strncpy(modes, ircd->modeonreg, 512);
|
||||
if (ircd->rootmodeonid && is_services_root(u))
|
||||
strncat(modes, ircd->rootmodeonid, 512 - len);
|
||||
else if (ircd->adminmodeonid && is_services_admin(u))
|
||||
strncat(modes, ircd->adminmodeonid, 512 - len);
|
||||
else if (ircd->opermodeonid && is_services_oper(u))
|
||||
strncat(modes, ircd->opermodeonid, 512 - len);
|
||||
if (ircd->tsonmode)
|
||||
common_svsmode(u, modes, tsbuf);
|
||||
else
|
||||
|
||||
@@ -95,12 +95,6 @@ class CommandNSConfirm : public Command
|
||||
{
|
||||
len = strlen(ircd->modeonreg);
|
||||
strncpy(modes, ircd->modeonreg, 512);
|
||||
if (ircd->rootmodeonid && is_services_root(u))
|
||||
strncat(modes, ircd->rootmodeonid, 512 - len);
|
||||
else if (ircd->adminmodeonid && is_services_admin(u))
|
||||
strncat(modes, ircd->adminmodeonid, 512 - len);
|
||||
else if (ircd->opermodeonid && is_services_oper(u))
|
||||
strncat(modes, ircd->opermodeonid, 512 - len);
|
||||
|
||||
if (ircd->tsonmode)
|
||||
{
|
||||
|
||||
@@ -76,9 +76,6 @@ IRCDVar myIrcd[] = {
|
||||
NULL, /* Mode to set for channel admin */
|
||||
NULL, /* Mode to unset for channel admin */
|
||||
"+rd", /* Mode On Reg */
|
||||
NULL, /* Mode on ID for Roots */
|
||||
NULL, /* Mode on ID for Admins */
|
||||
NULL, /* Mode on ID for Opers */
|
||||
"-r+d", /* Mode on UnReg */
|
||||
"+d", /* Mode on Nick Change */
|
||||
1, /* Supports SGlines */
|
||||
|
||||
@@ -85,9 +85,6 @@ IRCDVar myIrcd[] = {
|
||||
"+a", /* Mode to set for channel admin */
|
||||
"-a", /* Mode to unset for channel admin */
|
||||
"+r", /* Mode On Reg */
|
||||
NULL, /* Mode on ID for Roots */
|
||||
NULL, /* Mode on ID for Admins */
|
||||
NULL, /* Mode on ID for Opers */
|
||||
"-r", /* Mode on UnReg */
|
||||
"-r", /* Mode on Nick Change */
|
||||
1, /* Supports SGlines */
|
||||
|
||||
@@ -85,9 +85,6 @@ IRCDVar myIrcd[] = {
|
||||
"+a", /* Mode to set for channel admin */
|
||||
"-a", /* Mode to unset for channel admin */
|
||||
"+r", /* Mode On Reg */
|
||||
NULL, /* Mode on ID for Roots */
|
||||
NULL, /* Mode on ID for Admins */
|
||||
NULL, /* Mode on ID for Opers */
|
||||
"-r", /* Mode on UnReg */
|
||||
"-r", /* Mode on Nick Change */
|
||||
0, /* Supports SGlines */
|
||||
|
||||
@@ -61,9 +61,6 @@ IRCDVar myIrcd[] = {
|
||||
NULL, /* Mode to set for chan admin */
|
||||
NULL, /* Mode to unset for chan admin */
|
||||
NULL, /* Mode On Reg */
|
||||
NULL, /* Mode on ID for Roots */
|
||||
NULL, /* Mode on ID for Admins */
|
||||
NULL, /* Mode on ID for Opers */
|
||||
NULL, /* Mode on UnReg */
|
||||
NULL, /* Mode on Nick Change */
|
||||
1, /* Supports SGlines */
|
||||
|
||||
@@ -98,9 +98,6 @@ IRCDVar myIrcd[] = {
|
||||
"+a", /* Mode to set for channel admin */
|
||||
"-a", /* Mode to unset for channel admin */
|
||||
"+rd", /* Mode On Reg */
|
||||
NULL, /* Mode on ID for Roots */
|
||||
NULL, /* Mode on ID for Admins */
|
||||
NULL, /* Mode on ID for Opers */
|
||||
"-r+d", /* Mode on UnReg */
|
||||
"-r+d", /* Mode on Nick Change */
|
||||
1, /* Supports SGlines */
|
||||
|
||||
Reference in New Issue
Block a user