summaryrefslogtreecommitdiff
path: root/modules/extra/m_rewrite.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
committerAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
commitd33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch)
tree7b2274cc833c793c0f5595660cbd4d715de52ffd /modules/extra/m_rewrite.cpp
parent368d469631763e9c8bf399980d0ac7c5b5664d39 (diff)
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each other
Diffstat (limited to 'modules/extra/m_rewrite.cpp')
-rw-r--r--modules/extra/m_rewrite.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/extra/m_rewrite.cpp b/modules/extra/m_rewrite.cpp
index 6d8690960..70710bd8a 100644
--- a/modules/extra/m_rewrite.cpp
+++ b/modules/extra/m_rewrite.cpp
@@ -13,7 +13,8 @@ struct Rewrite
bool Matches(const std::vector<Anope::string> &message)
{
- std::vector<Anope::string> sm = BuildStringVector(this->source_message);
+ std::vector<Anope::string> sm;
+ spacesepstream(this->source_message).GetTokens(sm);
for (unsigned i = 0; i < sm.size(); ++i)
if (sm[i] != "$" && !sm[i].equals_ci(message[i]))
@@ -106,7 +107,8 @@ class ModuleRewrite : public Module
EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message) anope_override
{
- std::vector<Anope::string> tokens = BuildStringVector(message);
+ std::vector<Anope::string> tokens;
+ spacesepstream(message).GetTokens(tokens);
for (unsigned i = 0; i < this->rewrites.size(); ++i)
{
Rewrite &rw = this->rewrites[i];