summaryrefslogtreecommitdiff
path: root/modules/commands/cs_log.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-28 12:07:29 -0400
committerAdam <Adam@anope.org>2014-05-28 12:07:54 -0400
commitf29e1cf383529a1a29f02b0669d973f5ee0b7a66 (patch)
tree3c33db276dc9328235bbd572641521ed44458176 /modules/commands/cs_log.cpp
parent1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff)
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/cs_log.cpp')
-rw-r--r--modules/commands/cs_log.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp
index 678a2fd5f..39e6a31b5 100644
--- a/modules/commands/cs_log.cpp
+++ b/modules/commands/cs_log.cpp
@@ -21,7 +21,7 @@ struct LogSettingImpl : LogSetting, Serializable
~LogSettingImpl()
{
- ChannelInfo *ci = ChannelInfo::Find(chan);
+ ChanServ::Channel *ci = ChanServ::Find(chan);
if (ci)
{
LogSettings *ls = ci->GetExt<LogSettings>("logsettings");
@@ -51,10 +51,10 @@ struct LogSettingImpl : LogSetting, Serializable
Anope::string sci;
data["ci"] >> sci;
- ChannelInfo *ci = ChannelInfo::Find(sci);
+ ChanServ::Channel *ci = ChanServ::Find(sci);
if (ci == NULL)
return NULL;
-
+
LogSettingImpl *ls;
if (obj)
ls = anope_dynamic_static_cast<LogSettingImpl *>(obj);
@@ -112,7 +112,7 @@ public:
{
const Anope::string &channel = params[0];
- ChannelInfo *ci = ChannelInfo::Find(channel);
+ ChanServ::Channel *ci = ChanServ::Find(channel);
if (ci == NULL)
source.Reply(CHAN_X_NOT_REGISTERED, channel.c_str());
else if (!source.AccessFor(ci).HasPriv("SET") && !source.HasPriv("chanserv/administration"))
@@ -325,7 +325,7 @@ class CSLog : public Module
}
}
- void OnChanRegistered(ChannelInfo *ci) override
+ void OnChanRegistered(ChanServ::Channel *ci) override
{
if (defaults.empty())
return;
@@ -393,7 +393,7 @@ class CSLog : public Module
else if (log->method.equals_ci("MESSAGE") && l->ci->c)
{
IRCD->SendPrivmsg(l->ci->WhoSends(), log->extra + l->ci->c->name, "%s", buffer.c_str());
- l->ci->WhoSends()->lastmsg = Anope::CurTime;
+ //l->ci->WhoSends()->lastmsg = Anope::CurTime;
}
else if (log->method.equals_ci("NOTICE") && l->ci->c)
IRCD->SendNotice(l->ci->WhoSends(), log->extra + l->ci->c->name, "%s", buffer.c_str());