summaryrefslogtreecommitdiff
path: root/src/core
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
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')
-rw-r--r--src/core/bs_act.c2
-rw-r--r--src/core/bs_say.c2
-rw-r--r--src/core/os_set.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c
index 13ef27a23..c8616170a 100644
--- a/src/core/bs_act.c
+++ b/src/core/bs_act.c
@@ -50,7 +50,7 @@ class CommandBSAct : public Command
ircdproto->SendAction(ci->bi, ci->name, "%s", params[1].c_str());
ci->bi->lastmsg = time(NULL);
- if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
+ if (LogBot && LogChannel && LogChan && !debug && findchan(LogChannel))
ircdproto->SendPrivmsg(ci->bi, LogChannel, "ACT %s %s %s", u->nick, ci->name, params[1].c_str());
return MOD_CONT;
}
diff --git a/src/core/bs_say.c b/src/core/bs_say.c
index 577891cd5..dbca41518 100644
--- a/src/core/bs_say.c
+++ b/src/core/bs_say.c
@@ -57,7 +57,7 @@ class CommandBSSay : public Command
ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", text);
ci->bi->lastmsg = time(NULL);
- if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
+ if (LogBot && LogChannel && LogChan && !debug && findchan(LogChannel))
ircdproto->SendPrivmsg(ci->bi, LogChannel, "SAY %s %s %s", u->nick, ci->name, text);
return MOD_CONT;
}
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