1
0
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:
rburchell
2009-04-02 20:33:28 +00:00
parent e9e5ccc891
commit 93baed333f
10 changed files with 1 additions and 38 deletions
-3
View File
@@ -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 */
+1 -2
View File
@@ -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)
-6
View File
@@ -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
-6
View File
@@ -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
-6
View File
@@ -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)
{
-3
View File
@@ -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 */
-3
View File
@@ -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 */
-3
View File
@@ -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 */
-3
View File
@@ -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 */
-3
View File
@@ -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 */