diff options
Diffstat (limited to 'src/modules/m_operjoin.cpp')
-rw-r--r-- | src/modules/m_operjoin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index 75f809f4a..ae6abce0b 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -14,13 +14,10 @@ #include "users.h" #include "channels.h" #include "modules.h" - #include "inspircd.h" /* $ModDesc: Forces opers to join the specified channel(s) on oper-up */ - - class ModuleOperjoin : public Module { private: @@ -79,7 +76,7 @@ class ModuleOperjoin : public Module virtual void OnPostOper(userrec* user, const std::string &opertype) { - if(operChan != "") + if (!operChan.empty()) { std::vector<std::string> operChans; tokenize(operChan,operChans); |