diff options
Diffstat (limited to 'modules/commands')
-rw-r--r-- | modules/commands/bs_badwords.cpp | 5 | ||||
-rw-r--r-- | modules/commands/cs_seen.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_cert.cpp | 18 | ||||
-rw-r--r-- | modules/commands/ns_getpass.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_dns.cpp | 2 |
5 files changed, 14 insertions, 15 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index 41cfb7f4c..406ec0f03 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -202,10 +202,9 @@ class CommandBSBadwords : public Command class BadwordsListCallback : public NumberList { ListFormatter &list; - ChannelInfo *ci; BadWords *bw; public: - BadwordsListCallback(ListFormatter &_list, ChannelInfo *_ci, BadWords *_bw, const Anope::string &numlist) : NumberList(numlist, false), list(_list), ci(_ci), bw(_bw) + BadwordsListCallback(ListFormatter &_list, BadWords *_bw, const Anope::string &numlist) : NumberList(numlist, false), list(_list), bw(_bw) { } @@ -222,7 +221,7 @@ class CommandBSBadwords : public Command this->list.AddEntry(entry); } } - nl_list(list, ci, bw, word); + nl_list(list, bw, word); nl_list.Process(); } else diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 8a48fafc6..b483e9e74 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -183,7 +183,7 @@ class CommandOSSeen : public Command class CommandSeen : public Command { - void SimpleSeen(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override + void SimpleSeen(CommandSource &source, const std::vector<Anope::string> ¶ms) { if (!source.c || !source.c->ci) { diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index c8274f4d6..a4a335fa0 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -104,13 +104,13 @@ struct NSCertListImpl : NSCertList if (s->GetSerializableType()->GetName() != "NickCore") return; - const NickCore *nc = anope_dynamic_static_cast<const NickCore *>(e); - NSCertList *certs = this->Get(nc); - if (certs == NULL || !certs->GetCertCount()) + const NickCore *n = anope_dynamic_static_cast<const NickCore *>(e); + NSCertList *c = this->Get(n); + if (c == NULL || !c->GetCertCount()) return; - for (unsigned i = 0; i < certs->GetCertCount(); ++i) - data["cert"] << certs->GetCert(i) << " "; + for (unsigned i = 0; i < c->GetCertCount(); ++i) + data["cert"] << c->GetCert(i) << " "; } void ExtensibleUnserialize(Extensible *e, Serializable *s, Serialize::Data &data) anope_override @@ -118,15 +118,15 @@ struct NSCertListImpl : NSCertList if (s->GetSerializableType()->GetName() != "NickCore") return; - NickCore *nc = anope_dynamic_static_cast<NickCore *>(e); - NSCertListImpl *certs = this->Require(nc); + NickCore *n = anope_dynamic_static_cast<NickCore *>(e); + NSCertListImpl *c = this->Require(n); Anope::string buf; data["cert"] >> buf; spacesepstream sep(buf); - certs->certs.clear(); + c->certs.clear(); while (sep.GetToken(buf)) - certs->certs.push_back(buf); + c->certs.push_back(buf); } }; }; diff --git a/modules/commands/ns_getpass.cpp b/modules/commands/ns_getpass.cpp index cb320ad76..1d2bef754 100644 --- a/modules/commands/ns_getpass.cpp +++ b/modules/commands/ns_getpass.cpp @@ -65,7 +65,7 @@ class NSGetPass : public Module { Anope::string tmp_pass = "plain:tmp"; - if (Anope::Decrypt(tmp_pass, tmp_pass) == -1) + if (!Anope::Decrypt(tmp_pass, tmp_pass)) throw ModuleException("Incompatible with the encryption module being used"); } diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index 7c13a1dbb..9cb51bca2 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -10,7 +10,7 @@ static ServiceReference<DNS::Manager> dnsmanager("DNS::Manager", "dns/manager"); -class DNSZone; +struct DNSZone; class DNSServer; static Serialize::Checker<std::vector<DNSZone *> > zones("DNSZone"); |