diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-26 23:32:03 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-26 23:32:03 -0400 |
| commit | 57bb7593059242652c57aae4391b45416dc7fa70 (patch) | |
| tree | 80b1b21308a0ce7e55bc5b8e278ed6cc95c07e8c /modules/protocol/inspircd12.cpp | |
| parent | 6e6b6b46aabfb3e558f66bd0fdc528e93505cf76 (diff) | |
Trying to make things a little more const-safe, a work in progress but this is a bit better.
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 416a91c96..4c1a5407e 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -1280,7 +1280,7 @@ void moduleAddIRCDMsgs() Anope::AddMessage("METADATA", anope_event_metadata); } -bool ChannelModeFlood::IsValid(const Anope::string &value) +bool ChannelModeFlood::IsValid(const Anope::string &value) const { Anope::string rest; if (!value.empty() && value[0] != ':' && convertTo<int>(value[0] == '*' ? value.substr(1) : value, rest, false) > 0 && rest[0] == ':' && rest.length() > 1 && convertTo<int>(rest.substr(1), rest, false) > 0 && rest.empty()) |
