diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-04 12:15:57 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-04 12:15:57 +0000 |
commit | feb4dbeef44537599abca584ee4b78ab188c2ec9 (patch) | |
tree | 09cdd1c9098f76344b2d7a5b7b8f83d64cfdd1c5 | |
parent | dd0f59211e200c9c29f8c76daa7e5b24fb392613 (diff) |
Clean up some FJOIN stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8816 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree/fjoin.cpp | 21 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 23 |
2 files changed, 21 insertions, 23 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index eacd9ee04..d8849ac44 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -184,3 +184,24 @@ bool TreeSocket::ForceJoin(const std::string &source, std::deque<std::string> &p return true; } +/** TODO: This creates a total mess of output and needs to really use irc::modestacker. + */ +bool TreeSocket::RemoveStatus(const std::string &prefix, std::deque<std::string> ¶ms) +{ + if (params.size() < 1) + return true; + + Channel* c = Instance->FindChan(params[0]); + + if (c) + { + for (char modeletter = 'A'; modeletter <= 'z'; modeletter++) + { + ModeHandler* mh = Instance->Modes->FindMode(modeletter, MODETYPE_CHANNEL); + if (mh) + mh->RemoveMode(c); + } + } + return true; +} + diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 7fbf9b4ad..beee39a56 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -50,25 +50,6 @@ bool TreeSocket::Error(std::deque<std::string> ¶ms) return false; } -/** TODO: This creates a total mess of output and needs to really use irc::modestacker. - */ -bool TreeSocket::RemoveStatus(const std::string &prefix, std::deque<std::string> ¶ms) -{ - if (params.size() < 1) - return true; - Channel* c = Instance->FindChan(params[0]); - if (c) - { - for (char modeletter = 'A'; modeletter <= 'z'; modeletter++) - { - ModeHandler* mh = Instance->Modes->FindMode(modeletter, MODETYPE_CHANNEL); - if (mh) - mh->RemoveMode(c); - } - } - return true; -} - bool TreeSocket::RemoteServer(const std::string &prefix, std::deque<std::string> ¶ms) { if (params.size() < 5) @@ -627,10 +608,6 @@ bool TreeSocket::ProcessLine(std::string &line) { return this->MetaData(prefix,params); } - else if (command == "REMSTATUS") - { - return this->RemoveStatus(prefix,params); - } else if (command == "PING") { return this->LocalPing(prefix,params); |