summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-11-24 14:24:41 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-11-24 14:24:41 +0000
commitadf2b2c9996456222c164bc7e2499202b1950081 (patch)
treeb018df066778e0e31599afb5debed6fa7ec250e6
parentae98f6f0e0805aabf82a92d8906441cce63b3758 (diff)
Add OperPrefixMode::GetPrefixRank(), so +y is ranked above all other prefix modes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10825 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_operprefix.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index 5c051c916..a55bcf240 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -50,6 +50,11 @@ class OperPrefixMode : public ModeHandler
public:
OperPrefixMode(InspIRCd* Instance) : ModeHandler(Instance, 'y', 1, 1, true, MODETYPE_CHANNEL, false, prefixchar) { }
+ unsigned int GetPrefixRank()
+ {
+ return 40000;
+ }
+
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool servermode)
{
if (servermode || (source && ServerInstance->ULine(source->server)))