]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
inline Channel::IsModeSet
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 2 Sep 2009 00:51:04 +0000 (00:51 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 2 Sep 2009 00:51:04 +0000 (00:51 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11643 e03df62e-2008-0410-955e-edbf42e46eb7

include/channels.h
src/channels.cpp

index 82bf508539b171ebd1c834f0b598bdeca02266ae..dfbe06c270a26eab1a450f558ff1b0260e966826 100644 (file)
@@ -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
index 76e2f0a68c6263b20124b3fd2a93c969074a3dd2..b53f780e66e452874e0e6d658387e606871b55b3 100644 (file)
@@ -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);