summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:51:04 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:51:04 +0000
commit95f69d02e9453229867521683824c6b1b7a2acab (patch)
tree891cfd6c78c52a2eae0ccf1d0dc894121ba815dd
parent972edd0ff3b6750d270b79407cc8407c413d2082 (diff)
inline Channel::IsModeSet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11643 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/channels.h3
-rw-r--r--src/channels.cpp5
2 files changed, 2 insertions, 6 deletions
diff --git a/include/channels.h b/include/channels.h
index 82bf50853..dfbe06c27 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -218,7 +218,8 @@ class CoreExport Channel : public Extensible
* @param mode The mode character you wish to query
* @return True if the custom mode is set, false if otherwise
*/
- bool IsModeSet(char mode);
+ inline bool IsModeSet(char mode) { return modes[mode-'A']; }
+
/** Returns the parameter for a custom mode on a channel.
* @param mode The mode character you wish to query
diff --git a/src/channels.cpp b/src/channels.cpp
index 76e2f0a68..b53f780e6 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -53,11 +53,6 @@ void Channel::SetModeParam(char mode, std::string parameter)
}
}
-bool Channel::IsModeSet(char mode)
-{
- return modes[mode-65];
-}
-
std::string Channel::GetModeParameter(char mode)
{
CustomModeList::iterator n = custom_mode_params.find(mode);