aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customprefix.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-08-06 13:35:40 +0200
committerGravatar Attila Molnar2014-08-06 13:35:40 +0200
commit51da1d3b59c25af4931b998cc23e2066392e548e (patch)
tree7f04223551f1a475f304befc744776bfadad0d9a /src/modules/m_customprefix.cpp
parentRemove a bunch of useless classes representing simple core modes (diff)
Pass prefix rank and prefix char to PrefixMode constructor
Diffstat (limited to 'src/modules/m_customprefix.cpp')
-rw-r--r--src/modules/m_customprefix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp
index 65c2cbd31..f6f9a84f6 100644
--- a/src/modules/m_customprefix.cpp
+++ b/src/modules/m_customprefix.cpp
@@ -26,14 +26,13 @@ class CustomPrefixMode : public PrefixMode
bool depriv;
CustomPrefixMode(Module* parent, ConfigTag* Tag)
- : PrefixMode(parent, Tag->getString("name"), 0)
+ : PrefixMode(parent, Tag->getString("name"), 0, Tag->getInt("rank"))
, tag(Tag)
{
std::string v = tag->getString("prefix");
prefix = v.c_str()[0];
v = tag->getString("letter");
mode = v.c_str()[0];
- prefixrank = tag->getInt("rank");
levelrequired = tag->getInt("ranktoset", prefixrank);
depriv = tag->getBool("depriv", true);
}