1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 08:36:37 +02:00

Track what "level" channel status modes are, which allows us to have chanserv/mode determine if a status mode can be set by users better

This commit is contained in:
Adam
2011-08-19 04:18:13 -04:00
parent 6401d93b8e
commit 4fcb371bc8
10 changed files with 91 additions and 52 deletions
+2 -1
View File
@@ -222,8 +222,9 @@ ChannelModeParam::~ChannelModeParam()
* @param mName The mode name
* @param modeChar The mode char
* @param mSymbol The symbol for the mode, eg @ % +
* @param mLevel A level for the mode, which is usually determined by the PREFIX capab
*/
ChannelModeStatus::ChannelModeStatus(ChannelModeName mName, char modeChar, char mSymbol) : ChannelMode(mName, modeChar), Symbol(mSymbol)
ChannelModeStatus::ChannelModeStatus(ChannelModeName mName, char modeChar, char mSymbol, unsigned short mLevel) : ChannelMode(mName, modeChar), Symbol(mSymbol), Level(mLevel)
{
this->Type = MODE_STATUS;
}