From 0d8076aac5d7ce5e63c07033fcc3c334ca062990 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Feb 2007 21:47:13 +0000 Subject: 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 --- src/modules/m_operjoin.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_operjoin.cpp') 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 operChans; tokenize(operChan,operChans); -- cgit v1.3.1-10-gc9f91