diff options
author | Adam <Adam@anope.org> | 2012-01-25 15:48:07 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-01-25 15:48:07 -0500 |
commit | 52eaa7d6d61e3373340fd5a69b92b0fb3b5609e0 (patch) | |
tree | 428f2b440ab5675ae3a9c19ae5b813f132497c79 /modules/commands/bs_badwords.cpp | |
parent | e88e37c59b45cc43b714d1d28719eb3c2ca9579a (diff) |
Windows
Diffstat (limited to 'modules/commands/bs_badwords.cpp')
-rw-r--r-- | modules/commands/bs_badwords.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index 8b92377c7..a700fa6c9 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -128,7 +128,7 @@ class CommandBSBadwords : public Command void DoAdd(CommandSource &source, ChannelInfo *ci, const Anope::string &word) { size_t pos = word.rfind(' '); - BadWordType type = BW_ANY; + BadWordType bwtype = BW_ANY; Anope::string realword = word; if (pos != Anope::string::npos) @@ -137,11 +137,11 @@ class CommandBSBadwords : public Command if (!opt.empty()) { if (opt.equals_ci("SINGLE")) - type = BW_SINGLE; + bwtype = BW_SINGLE; else if (opt.equals_ci("START")) - type = BW_START; + bwtype = BW_START; else if (opt.equals_ci("END")) - type = BW_END; + bwtype = BW_END; } realword = word.substr(0, pos); } @@ -165,7 +165,7 @@ class CommandBSBadwords : public Command bool override = !ci->AccessFor(source.u).HasPriv("BADWORDS"); Log(override ? LOG_OVERRIDE : LOG_COMMAND, source.u, this, ci) << "ADD " << realword; - ci->AddBadWord(realword, type); + ci->AddBadWord(realword, bwtype); source.Reply(_("\002%s\002 added to %s bad words list."), realword.c_str(), ci->name.c_str()); |