inline Channel::IsModeSet

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11643 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
danieldg 2009-09-02 00:51:04 +00:00
parent 972edd0ff3
commit 95f69d02e9
2 changed files with 2 additions and 6 deletions

View 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

View 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);