summaryrefslogtreecommitdiff
path: root/src/core/os_umode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/os_umode.cpp')
-rw-r--r--src/core/os_umode.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/os_umode.cpp b/src/core/os_umode.cpp
index e20c0329f..cb353a938 100644
--- a/src/core/os_umode.cpp
+++ b/src/core/os_umode.cpp
@@ -7,9 +7,8 @@
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
- *
- *
*/
+
/*************************************************************************/
#include "module.h"
@@ -74,13 +73,13 @@ class OSUMode : public Module
public:
OSUMode(const std::string &modname, const std::string &creator) : Module(modname, creator)
{
+ if (!ircd->umode)
+ throw ModuleException("Your IRCd does not support setting umodes");
+
this->SetAuthor("Anope");
this->SetType(CORE);
this->AddCommand(OperServ, new CommandOSUMode());
-
- if (!ircd->umode)
- throw ModuleException("Your IRCd does not support setting umodes");
}
};