summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-08-06 13:40:27 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-08-06 13:40:27 +0200
commitf7ec4f3c2724edfdac2e1a64f1ec151f7f35f9e8 (patch)
tree2b2289a079409653f149e7ffc3d2153f4b4037fa
parent005b03c9f387e80c8e19ca5c26b1eb89362ff29a (diff)
m_ojoin Leave it to the core throw an exception if the prefix char is in use
-rw-r--r--src/modules/m_ojoin.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index e3cbbbb41..e26646c3a 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -119,8 +119,6 @@ class ModuleOjoin : public Module
{
std::string npre = ServerInstance->Config->ConfValue("ojoin")->getString("prefix");
char NPrefix = npre.empty() ? 0 : npre[0];
- if (NPrefix && ServerInstance->Modes->FindPrefix(NPrefix))
- throw ModuleException("Looks like the prefix you picked for m_ojoin is already in use. Pick another.");
/* Initialise module variables */
np = new NetworkPrefix(this, NPrefix);