diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:27:01 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:34:17 +0000 |
| commit | c6cb4ba159a8916243d7ac5a5c4e8d13942baf99 (patch) | |
| tree | 5183b6cb982dadb2b91987ff7b69486ea8d811df /modules/botserv | |
| parent | e341cac8d6565044f7390852afb40c5e388121df (diff) | |
Fix some coding style issues.
Diffstat (limited to 'modules/botserv')
| -rw-r--r-- | modules/botserv/bs_badwords.cpp | 8 | ||||
| -rw-r--r-- | modules/botserv/bs_kick.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/botserv/bs_badwords.cpp b/modules/botserv/bs_badwords.cpp index e513170e7..5dee8ed2c 100644 --- a/modules/botserv/bs_badwords.cpp +++ b/modules/botserv/bs_badwords.cpp @@ -26,7 +26,7 @@ struct BadWordImpl final data.SetType("type", Serialize::Data::DT_INT); data["type"] << this->type; } - static Serializable* Unserialize(Serializable *obj, Serialize::Data &); + static Serializable *Unserialize(Serializable *obj, Serialize::Data &); }; struct BadWordsImpl final @@ -40,7 +40,7 @@ struct BadWordsImpl final ~BadWordsImpl() override; - BadWord* AddBadWord(const Anope::string &word, BadWordType type) override + BadWord *AddBadWord(const Anope::string &word, BadWordType type) override { auto *bw = new BadWordImpl(); bw->chan = ci->name; @@ -54,7 +54,7 @@ struct BadWordsImpl final return bw; } - BadWord* GetBadWord(unsigned index) const override + BadWord *GetBadWord(unsigned index) const override { if (this->badwords->empty() || index >= this->badwords->size()) return NULL; @@ -117,7 +117,7 @@ BadWordImpl::~BadWordImpl() } } -Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data) +Serializable *BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data) { Anope::string sci, sword; diff --git a/modules/botserv/bs_kick.cpp b/modules/botserv/bs_kick.cpp index fc8696410..a3e76fdab 100644 --- a/modules/botserv/bs_kick.cpp +++ b/modules/botserv/bs_kick.cpp @@ -175,7 +175,7 @@ public: bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; protected: - bool CheckArguments(CommandSource &source, const std::vector<Anope::string> ¶ms, ChannelInfo* &ci) + bool CheckArguments(CommandSource &source, const std::vector<Anope::string> ¶ms, ChannelInfo *&ci) { const Anope::string &chan = params[0]; const Anope::string &option = params[1]; |
