diff options
author | Adam <Adam@anope.org> | 2013-05-26 17:13:11 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-26 17:13:11 -0400 |
commit | 22658d63bdb1e52a66f4514af45fa55ca5891345 (patch) | |
tree | 673304ab19f7e077b489354248247867518331f8 /src/messages.cpp | |
parent | f2dee1e1d642b07947f59f91dfba9af34ef84685 (diff) |
Get rid of the remaining references in the core to specific services. Move more stuff out of the core to the proper modules.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 5a688a89c..d9a89ef46 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -49,7 +49,7 @@ void Error::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) Anope::Quitting = true; } -void Invite::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override +void Invite::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) { User *targ = User::Find(params[0]); Channel *c = Channel::Find(params[1]); @@ -101,7 +101,7 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co bool keep_their_modes = true; if (created) - c->Extend("SYNCING"); + c->syncing = true; /* Some IRCds do not include a TS */ else if (!ts) ; @@ -120,7 +120,7 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co /* If we are syncing, mlock is checked later in Channel::Sync. It is important to not check it here * so that Channel::SetCorrectModes can correctly detect the presence of channel mode +r. */ - c->SetModesInternal(source, modes, ts, !c->HasExt("SYNCING")); + c->SetModesInternal(source, modes, ts, !c->syncing); for (std::list<SJoinUser>::const_iterator it = users.begin(), it_end = users.end(); it != it_end; ++it) { @@ -137,16 +137,16 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co /* Set whatever modes the user should have, and remove any that * they aren't allowed to have (secureops etc). */ - c->SetCorrectModes(u, true, true); + c->SetCorrectModes(u, true); if (c->ci) c->ci->CheckKick(u); } /* Channel is done syncing */ - if (c->HasExt("SYNCING")) + if (c->syncing) { - c->Shrink("SYNCING"); + c->syncing = false; /* Sync the channel (mode lock, topic, etc) */ /* the channel is synced when the netmerge is complete */ if (Me && Me->IsSynced()) @@ -444,7 +444,6 @@ void Version::Run(MessageSource &source, const std::vector<Anope::string> ¶m { Module *enc = ModuleManager::FindFirstOf(ENCRYPTION); IRCD->SendNumeric(351, source.GetSource(), "Anope-%s %s :%s -(%s) -- %s", Anope::Version().c_str(), Me->GetName().c_str(), IRCD->GetProtocolName().c_str(), enc ? enc->name.c_str() : "(none)", Anope::VersionBuildString().c_str()); - return; } void Whois::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) @@ -464,7 +463,5 @@ void Whois::Run(MessageSource &source, const std::vector<Anope::string> ¶ms) } else IRCD->SendNumeric(401, source.GetSource(), "%s :No such user.", params[0].c_str()); - - return; } |