From 903ba4e2ebf608737e1890cfa43c3e92a9ec2cf4 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 8 Aug 2006 13:22:30 +0000 Subject: add_channel -> chanrec::JoinUser() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4787 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_operjoin.cpp | 4 +--- src/modules/m_redirect.cpp | 2 +- src/modules/m_sajoin.cpp | 2 +- src/modules/m_spanningtree.cpp | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index a0a81f7ed..bf3088053 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -72,9 +72,7 @@ class ModuleOperjoin : public Module std::vector operChans; tokenize(operChan,operChans); for(std::vector::iterator it = operChans.begin(); it != operChans.end(); it++) - { - Srv->JoinUserToChannel(user,(*it),""); - } + chanrec::JoinUser(user, it->c_str(), false); } } diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp index a30073355..bbddb0f18 100644 --- a/src/modules/m_redirect.cpp +++ b/src/modules/m_redirect.cpp @@ -138,7 +138,7 @@ class ModuleRedirect : public Module { std::string channel = chan->GetModeParameter('L'); WriteServ(user->fd,"470 %s :%s has become full, so you are automatically being transferred to the linked channel %s",user->nick,cname,channel.c_str()); - Srv->JoinUserToChannel(user,channel.c_str(),""); + chanrec::JoinUser(user, channel.c_str(), false); return 1; } } diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index a94e03958..0c7387213 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -54,7 +54,7 @@ class cmd_sajoin : public command_t } Srv->SendOpers(std::string(user->nick)+" used SAJOIN to make "+std::string(dest->nick)+" join "+parameters[1]); - Srv->JoinUserToChannel(dest,std::string(parameters[1]),std::string(dest->nick)); + chanrec::JoinUser(dest, parameters[1], true); } } }; diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index d3f8e9a21..d8292a669 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1430,7 +1430,7 @@ class TreeSocket : public InspSocket who = Srv->FindNick(usr); if (who) { - Srv->JoinUserToChannel(who,channel,key); + chanrec::JoinUser(who, channel.c_str(), true, key); if (modectr >= (MAXMODES-1)) { /* theres a mode for this user. push them onto the mode queue, and flush it @@ -2030,7 +2030,7 @@ class TreeSocket : public InspSocket if (u) { - Srv->JoinUserToChannel(u,params[1],""); + chanrec::JoinUser(u, params[1].c_str(), false); DoOneToAllButSender(prefix,"SVSJOIN",params,prefix); } return true; -- cgit v1.2.3