diff options
| author | 2007-02-11 21:47:13 +0000 | |
|---|---|---|
| committer | 2007-02-11 21:47:13 +0000 | |
| commit | 0d8076aac5d7ce5e63c07033fcc3c334ca062990 (patch) | |
| tree | 8fb445511a090cb7eea76bf8d56909b0e543dc10 /src/modules/m_operjoin.cpp | |
| parent | Special *slap* seems to have set this to true :/ (diff) | |
Add m_conn_join, allows force join of a user to one or more channels on connect (ick).
Tidy up m_operjoin a little.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6575 e03df62e-2008-0410-955e-edbf42e46eb7
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); |
