1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 13:43:11 +02:00

Pretty large coding style cleanup, in source doc

cleanup, and allow protocol mods to depend on each
other
This commit is contained in:
Adam
2012-11-22 00:50:33 -05:00
parent 368d469631
commit d33a0f75a5
303 changed files with 7880 additions and 9388 deletions
+4 -2
View File
@@ -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];