mirror of
https://github.com/anope/anope.git
synced 2026-07-03 16:05:44 +02:00
Parse 1205-style mode lists for CAPAB CHANMODES/USERMODES.
This commit is contained in:
+2
-2
@@ -192,7 +192,7 @@ class CoreExport ChannelModeStatus : public ChannelMode
|
||||
/* The "level" of the mode, used to compare with other modes.
|
||||
* Used so we know op > halfop > voice etc.
|
||||
*/
|
||||
short level;
|
||||
unsigned level;
|
||||
|
||||
/** constructor
|
||||
* @param name The mode name
|
||||
@@ -200,7 +200,7 @@ class CoreExport ChannelModeStatus : public ChannelMode
|
||||
* @param msymbol The symbol for the mode, eg @ %
|
||||
* @param mlevel A level for the mode, which is usually determined by the PREFIX capab
|
||||
*/
|
||||
ChannelModeStatus(const Anope::string &name, char mc, char msymbol, short mlevel);
|
||||
ChannelModeStatus(const Anope::string &name, char mc, char msymbol, unsigned mlevel);
|
||||
};
|
||||
|
||||
/** A virtual mode. This mode doesn't natively exist on the IRCd (like extbans),
|
||||
|
||||
+220
-225
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -186,7 +186,7 @@ ChannelModeParam::ChannelModeParam(const Anope::string &cm, char mch, bool ma) :
|
||||
this->type = MODE_PARAM;
|
||||
}
|
||||
|
||||
ChannelModeStatus::ChannelModeStatus(const Anope::string &mname, char modeChar, char msymbol, short mlevel) : ChannelMode(mname, modeChar), symbol(msymbol), level(mlevel)
|
||||
ChannelModeStatus::ChannelModeStatus(const Anope::string &mname, char modeChar, char msymbol, unsigned mlevel) : ChannelMode(mname, modeChar), symbol(msymbol), level(mlevel)
|
||||
{
|
||||
this->type = MODE_STATUS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user