diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-08-06 13:40:27 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-08-06 13:40:27 +0200 |
commit | f7ec4f3c2724edfdac2e1a64f1ec151f7f35f9e8 (patch) | |
tree | 2b2289a079409653f149e7ffc3d2153f4b4037fa | |
parent | 005b03c9f387e80c8e19ca5c26b1eb89362ff29a (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.cpp | 2 |
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); |