diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 08:37:54 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 08:37:54 +0000 |
commit | 3e7adbfe4c337eb19321cd565a13b18e6bb9f0ca (patch) | |
tree | 296c4edeffa43eb3221c1576b5340f324d7fe586 /src/modules/m_operjoin.cpp | |
parent | 1661e2aaa919e33b39b3b25e771840845e4180dd (diff) |
Stylistic changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2031 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_operjoin.cpp')
-rw-r--r-- | src/modules/m_operjoin.cpp | 58 |
1 files changed, 25 insertions, 33 deletions
diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index 3609350a2..d1d9ef3b0 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -11,43 +11,36 @@ using namespace std; Server *Srv; -class ModuleOperjoin : public Module { - +class ModuleOperjoin : public Module +{ private: - std::string operChan; ConfigReader* conf; public: - - ModuleOperjoin() { - + ModuleOperjoin() + { Srv = new Server; conf = new ConfigReader; - operChan = conf->ReadValue("operjoin", "channel", 0); - } - virtual ~ModuleOperjoin() { - + virtual ~ModuleOperjoin() + { delete Srv; delete conf; - } - virtual Version GetVersion() { - + virtual Version GetVersion() + { return Version(1,0,0,1,VF_VENDOR); - } - virtual void OnOper(userrec* user, std::string opertype) { - - if(operChan != "") { - + virtual void OnOper(userrec* user, std::string opertype) + { + if(operChan != "") + { Srv->JoinUserToChannel(user,operChan,""); - } } @@ -56,20 +49,19 @@ class ModuleOperjoin : public Module { class ModuleOperjoinFactory : public ModuleFactory { - public: - ModuleOperjoinFactory() - { - } - - ~ModuleOperjoinFactory() - { - } - - virtual Module * CreateModule() - { - return new ModuleOperjoin; - } - + public: + ModuleOperjoinFactory() + { + } + + ~ModuleOperjoinFactory() + { + } + + virtual Module * CreateModule() + { + return new ModuleOperjoin; + } }; extern "C" void * init_module( void ) |