]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_customprefix.cpp
Clean up CoreException
[user/henk/code/inspircd.git] / src / modules / m_customprefix.cpp
index f0b6d88e340cc4fc77246256768ee801a6f355be..107c6d684b4e0497478e56ed1f417f1e973481a9 100644 (file)
@@ -69,7 +69,7 @@ class ModuleCustomPrefix : public Module
                        }
                        catch (ModuleException& e)
                        {
-                               throw ModuleException(e.err + " (while creating mode from " + tag->getTagLocation() + ")");
+                               throw ModuleException(e.GetReason() + " (while creating mode from " + tag->getTagLocation() + ")");
                        }
                }
        }