1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 16:23:12 +02:00

Enable SVSHOLD for Insp1.1/1.2, remove UseSVSHOLD. Enforcer support may go away, as it is hacky, and no longer used with any of the ircds.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1739 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2008-11-16 00:56:47 +00:00
parent 01806ba861
commit 61f2ce9a41
6 changed files with 8 additions and 17 deletions
+1 -2
View File
@@ -300,8 +300,7 @@ E bool UseStrictPrivMsg;
E bool DumpCore;
E bool LogUsers;
E int NickRegDelay;
E int UseSVSHOLD;
E bool RestrictOperNicks;
E int RestrictOperNicks;
E int NewsCount;
E char *Numeric;
E int UseTS6;
+2 -6
View File
@@ -102,7 +102,6 @@ bool UseStrictPrivMsg;
bool DumpCore;
bool LogUsers;
int NickRegDelay;
int UseSVSHOLD;
int NewsCount;
bool UseMail;
@@ -1391,13 +1390,10 @@ Directive directives[] = {
{"RemoteServer3", {{PARAM_STRING, 0, &RemoteServer3},
{PARAM_PORT, 0, &RemotePort3},
{PARAM_STRING, 0, &RemotePassword3}}},
{"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}},
{"RestrictOperNicks", {{PARAM_SET, PARAM_RELOAD, &RestrictOperNicks}}},
{"AnonymousGlobal", {{PARAM_SET, PARAM_RELOAD, &AnonymousGlobal}}},
{"UseTS6", {{PARAM_SET, 0, &UseTS6}}},
<<<<<<< HEAD:src/config.c
{"UnRestrictSAdmin", {{PARAM_SET, PARAM_RELOAD, &UnRestrictSAdmin}}},
=======
{"UlineServers", {{PARAM_STRING, PARAM_RELOAD, &UlineServers}}},
>>>>>>> Remove UnRestrictSAdmin.:src/config.c
};
/*************************************************************************/
+1 -1
View File
@@ -318,7 +318,7 @@ int m_whois(const char *source, const char *who)
ircdproto->SendNumeric(ServerName, 317, source, "%s %ld %ld :seconds idle, signon time", bi->nick, time(NULL) - bi->lastmsg, start_time);
ircdproto->SendNumeric(ServerName, 318, source, "%s :End of /WHOIS list.", who);
return MOD_CONT;
} else if (!(ircd->svshold && UseSVSHOLD) && (na = findnick(who))
} else if (!ircd->svshold && (na = findnick(who))
&& (na->status & NS_KILL_HELD)) {
/* We have a nick enforcer client here that we need to respond to.
* We can't just say it doesn't exist here, even tho it does for
+2 -6
View File
@@ -840,7 +840,7 @@ void cancel_user(User * u)
if (na) {
if (na->status & NS_GUESTED) {
if (ircd->svshold) {
if (UseSVSHOLD) {
if (ircd->svshold) {
ircdproto->SendSVSHold(na->nick);
} else {
if (ircd->svsnick) {
@@ -1395,11 +1395,7 @@ void release(NickAlias * na, int from_timeout)
if (!from_timeout)
del_ns_timeout(na, TO_RELEASE);
if (ircd->svshold) {
if (UseSVSHOLD) {
ircdproto->SendSVSHoldDel(na->nick);
} else {
ircdproto->SendQuit(na->nick, NULL);
}
ircdproto->SendSVSHoldDel(na->nick);
} else {
ircdproto->SendQuit(na->nick, NULL);
}
+1 -1
View File
@@ -109,7 +109,7 @@ IRCDVar myIrcd[] = {
1, /* Chan Reg */
CMODE_r, /* Channel Mode */
1, /* vidents */
0, /* svshold */
1, /* svshold */
0, /* time stamp on mode */
0, /* NICKIP */
1, /* O:LINE */
+1 -1
View File
@@ -109,7 +109,7 @@ IRCDVar myIrcd[] = {
1, /* Chan Reg */
CMODE_r, /* Channel Mode */
1, /* vidents */
0, /* svshold */
1, /* svshold */
0, /* time stamp on mode */
0, /* NICKIP */
1, /* O:LINE */