summaryrefslogtreecommitdiff
path: root/src/core/os_oline.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-27 23:15:05 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-27 23:15:05 -0400
commit28e12bc24a9c85f4f0d1e37567618ec39cb501f6 (patch)
treecc70ebeef95a9d95174afe3ef038b0d673346f58 /src/core/os_oline.cpp
parent051ebe3eea0f8529b64c0e443c61103ba2f7dee8 (diff)
The next of a few "CBX OCDing over code style" commits, maybe the last.
NOTES: I have been unable to compile the db_mysql_* functions on my system here, so those are untested. db-convert seems to be badly programmed and needs more work in my opinion.
Diffstat (limited to 'src/core/os_oline.cpp')
-rw-r--r--src/core/os_oline.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/os_oline.cpp b/src/core/os_oline.cpp
index 49d9ed8af..bceea1a49 100644
--- a/src/core/os_oline.cpp
+++ b/src/core/os_oline.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"
@@ -71,13 +70,13 @@ class OSOLine : public Module
public:
OSOLine(const std::string &modname, const std::string &creator) : Module(modname, creator)
{
+ if (!ircd->omode)
+ throw ModuleException("Your IRCd does not support OMODE.");
+
this->SetAuthor("Anope");
this->SetType(CORE);
this->AddCommand(OperServ, new CommandOSOLine());
-
- if (!ircd->omode)
- throw ModuleException("Your IRCd does not support OMODE.");
}
};