summaryrefslogtreecommitdiff
path: root/src/core/os_set.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-25 04:12:47 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-25 04:12:47 +0000
commit7a429517af09a2240f938a5570f83e4c6b9f9f9f (patch)
tree4f334eb0878f9d9ef1b985566b50e723969e7b84 /src/core/os_set.c
parent0e8de37778d82c7909038b8847b92a98aff6f5e7 (diff)
added options:enablelogchannel config file option, which turns on the logchannel on startup. yay!
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2585 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/os_set.c')
-rw-r--r--src/core/os_set.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/os_set.c b/src/core/os_set.c
index c74c275c9..a48ea96f9 100644
--- a/src/core/os_set.c
+++ b/src/core/os_set.c
@@ -26,7 +26,7 @@ class CommandOSSet : public Command
notice_lang(s_OperServ, u, index, "IGNORE");
index = readonly ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
notice_lang(s_OperServ, u, index, "READONLY");
- index = logchan ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
+ index = LogChan ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
notice_lang(s_OperServ, u, index, "LOGCHAN");
index = debug ? OPER_SET_LIST_OPTION_ON : OPER_SET_LIST_OPTION_OFF;
notice_lang(s_OperServ, u, index, "DEBUG");
@@ -116,7 +116,7 @@ class CommandOSSet : public Command
c = findchan(LogChannel);
ircdproto->SendJoin(findbot(s_GlobalNoticer), LogChannel, c ? c->creation_time : time(NULL));
}
- logchan = 1;
+ LogChan = true;
alog("Now sending log messages to %s", LogChannel);
notice_lang(s_OperServ, u, OPER_SET_LOGCHAN_ON, LogChannel);
}
@@ -125,7 +125,7 @@ class CommandOSSet : public Command
alog("No longer sending log messages to a channel");
if (ircd->join2msg)
ircdproto->SendPart(findbot(s_GlobalNoticer), LogChannel, NULL);
- logchan = 0;
+ LogChan = false;
notice_lang(s_OperServ, u, OPER_SET_LOGCHAN_OFF);
}
else