summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-26 23:32:03 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-26 23:32:03 -0400
commit57bb7593059242652c57aae4391b45416dc7fa70 (patch)
tree80b1b21308a0ce7e55bc5b8e278ed6cc95c07e8c /src/modes.cpp
parent6e6b6b46aabfb3e558f66bd0fdc528e93505cf76 (diff)
Trying to make things a little more const-safe, a work in progress but this is a bit better.
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index 3642b977e..af4c2f879 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -201,7 +201,7 @@ ChannelModeStatus::~ChannelModeStatus()
* @param value The key
* @return true or false
*/
-bool ChannelModeKey::IsValid(const Anope::string &value)
+bool ChannelModeKey::IsValid(const Anope::string &value) const
{
if (!value.empty() && value.find(':') != Anope::string::npos && value.find(',') != Anope::string::npos)
return true;
@@ -213,7 +213,7 @@ bool ChannelModeKey::IsValid(const Anope::string &value)
* @param u The user - can be NULL if defcon is checking
* @return true or false
*/
-bool ChannelModeAdmin::CanSet(User *u)
+bool ChannelModeAdmin::CanSet(User *u) const
{
if (u && is_oper(u))
return true;
@@ -225,7 +225,7 @@ bool ChannelModeAdmin::CanSet(User *u)
* @param u The user - can be NULL if defcon is checking
* @return true or false
*/
-bool ChannelModeOper::CanSet(User *u)
+bool ChannelModeOper::CanSet(User *u) const
{
if (u && is_oper(u))
return true;
@@ -233,11 +233,11 @@ bool ChannelModeOper::CanSet(User *u)
return false;
}
-/** Can the user set the registerd mode?
+/** Can the user set the registered mode?
* No.
* @return false
*/
-bool ChannelModeRegistered::CanSet(User *u)
+bool ChannelModeRegistered::CanSet(User *u) const
{
return false;
}