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 | |
| 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')
| -rw-r--r-- | modules/extra/m_ssl.cpp | 4 | ||||
| -rw-r--r-- | modules/protocol/bahamut.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/inspircd11.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/unreal32.cpp | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/modules/extra/m_ssl.cpp b/modules/extra/m_ssl.cpp index 386dd0d5f..ea1c3e4fb 100644 --- a/modules/extra/m_ssl.cpp +++ b/modules/extra/m_ssl.cpp @@ -19,12 +19,12 @@ class SSLSocket : public ClientSocket private: SSL *sslsock; - const int RecvInternal(char *buf, size_t sz) const + int RecvInternal(char *buf, size_t sz) const { return SSL_read(sslsock, buf, sz); } - const int SendInternal(const Anope::string &buf) const + int SendInternal(const Anope::string &buf) const { return SSL_write(sslsock, buf.c_str(), buf.length()); } diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 1f8b70ef7..d80fb953b 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -709,7 +709,7 @@ int anope_event_burst(const Anope::string &source, int ac, const char **av) return MOD_CONT; } -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()) diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp index 9e21516e6..c58c011c9 100644 --- a/modules/protocol/inspircd11.cpp +++ b/modules/protocol/inspircd11.cpp @@ -1081,7 +1081,7 @@ void moduleAddIRCDMsgs() Anope::AddMessage("IDLE", anope_event_idle); } -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()) 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()) diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 8c3f14e67..5097f24b8 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -1251,7 +1251,7 @@ void moduleAddIRCDMsgs() Anope::AddMessage("METADATA", anope_event_metadata); } -bool ChannelModeFlood::IsValid(const Anope::string &value) +bool ChannelModeFlood::IsValid(const Anope::string &value) const { //char *dp, *end; Anope::string rest; diff --git a/modules/protocol/unreal32.cpp b/modules/protocol/unreal32.cpp index f94e5bcbe..a8aee3790 100644 --- a/modules/protocol/unreal32.cpp +++ b/modules/protocol/unreal32.cpp @@ -1215,7 +1215,7 @@ void moduleAddIRCDMsgs() } /* Borrowed part of this check from UnrealIRCd */ -bool ChannelModeFlood::IsValid(const Anope::string &value) +bool ChannelModeFlood::IsValid(const Anope::string &value) const { if (value.empty()) return false; |
