summaryrefslogtreecommitdiff
path: root/src/protocol
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-05 16:52:39 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-05 16:52:39 +0000
commite02967bd4a78eba1646e6089406a443ecf13fe8a (patch)
tree61a124add0c61bcf9fca7523d01a16a5fa16e6f1 /src/protocol
parent92bf0c800f29f617c9bce773f1e1b0c1bf7f2c8e (diff)
Print an error if the TS6 SID isn't set/is set incorrectly, most people don't know how to work logfiles
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2930 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol')
-rw-r--r--src/protocol/inspircd12.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c
index fefe004bf..e887db7e0 100644
--- a/src/protocol/inspircd12.c
+++ b/src/protocol/inspircd12.c
@@ -2636,19 +2636,25 @@ void moduleAddAnopeCmds()
**/
int AnopeInit(int argc, char **argv)
{
+ int noforksave = nofork;
+
moduleAddAuthor("Anope");
moduleAddVersion("$Id$");
moduleSetType(PROTOCOL);
if (!UseTS6) {
+ nofork = 1; /* We're going down, set nofork so this error is printed */
alog("FATAL ERROR: The InspIRCd 1.2 protocol module requires UseTS6 to be enabled in the services.conf.");
+ nofork = noforksave;
return MOD_STOP;
}
if (Numeric && is_sid(Numeric))
TS6SID = sstrdup(Numeric);
else {
+ nofork = 1; /* We're going down, set nofork so this error is printed */
alog("FATAL ERROR: The InspIRCd 1.2 protocol module requires the Numeric in the services.conf to contain a TS6SID.");
+ nofork = noforksave;
return MOD_STOP;
}