summaryrefslogtreecommitdiff
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-08-06 13:35:40 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-08-06 13:35:40 +0200
commit51da1d3b59c25af4931b998cc23e2066392e548e (patch)
tree7f04223551f1a475f304befc744776bfadad0d9a /src/modules/m_ojoin.cpp
parent00660293338f6a78278e52d05f6cf9a7ef9acc64 (diff)
Pass prefix rank and prefix char to PrefixMode constructor
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 120715429..e3cbbbb41 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -87,11 +87,9 @@ class NetworkPrefix : public PrefixMode
{
public:
NetworkPrefix(Module* parent, char NPrefix)
- : PrefixMode(parent, "official-join", 'Y')
+ : PrefixMode(parent, "official-join", 'Y', NETWORK_VALUE, NPrefix)
{
- prefix = NPrefix;
levelrequired = INT_MAX;
- prefixrank = NETWORK_VALUE;
}
ModResult AccessCheck(User* source, Channel* channel, std::string &parameter, bool adding)