summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-03 14:28:13 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-03 14:28:13 +0200
commitb9006ce3cba742ca2a22d601ba1a63a47b0402c9 (patch)
tree71a7075cee94a999979d70a7684c64840a68fa3b
parente7e315fc9dbd37218d55a6673ba65503c0bbcc1b (diff)
Remove ProtocolInterface::SendMode()
-rw-r--r--include/protocol.h9
-rw-r--r--src/mode.cpp3
-rw-r--r--src/modules/m_spanningtree/protocolinterface.cpp4
-rw-r--r--src/modules/m_spanningtree/protocolinterface.h1
4 files changed, 0 insertions, 17 deletions
diff --git a/include/protocol.h b/include/protocol.h
index 01eb145f1..2b1ffb753 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -104,15 +104,6 @@ class CoreExport ProtocolInterface
*/
virtual void SendTopic(Channel* channel, std::string &topic) { }
- /** Send mode changes for an object.
- * @param source The source of the mode change
- * @param usertarget The target user, NULL if the target is a channel
- * @param chantarget The target channel, NULL if the target is a user
- * @param modedata The mode changes to send.
- * @param translate A list of translation types
- */
- virtual void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector<TranslateType>& translate) { }
-
/** Send a notice to users with a given snomask.
* @param snomask The snomask required for the message to be sent.
* @param text The message to send.
diff --git a/src/mode.cpp b/src/mode.cpp
index 66ce313f4..8081188f5 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -495,9 +495,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
LastParse.append(output_mode);
LastParse.append(output_parameters);
- if (!(flags & MODE_LOCALONLY))
- ServerInstance->PI->SendMode(user, targetuser, targetchannel, LastParseParams, LastParseTranslate);
-
if (targetchannel)
targetchannel->WriteChannel(user, "MODE " + LastParse);
else
diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp
index 3ad75a430..786f8b74b 100644
--- a/src/modules/m_spanningtree/protocolinterface.cpp
+++ b/src/modules/m_spanningtree/protocolinterface.cpp
@@ -107,10 +107,6 @@ void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &top
CommandFTopic::Builder(ServerInstance->FakeClient, channel).Broadcast();
}
-void SpanningTreeProtocolInterface::SendMode(User* source, User* u, Channel* c, const std::vector<std::string>& modedata, const std::vector<TranslateType>& translate)
-{
-}
-
void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::string &text)
{
CmdBuilder("SNONOTICE").push(snomask).push_last(text).Broadcast();
diff --git a/src/modules/m_spanningtree/protocolinterface.h b/src/modules/m_spanningtree/protocolinterface.h
index 97648f4b4..45742e9ea 100644
--- a/src/modules/m_spanningtree/protocolinterface.h
+++ b/src/modules/m_spanningtree/protocolinterface.h
@@ -37,7 +37,6 @@ class SpanningTreeProtocolInterface : public ProtocolInterface
void SendMetaData(Channel* chan, const std::string& key, const std::string& data) CXX11_OVERRIDE;
void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE;
void SendTopic(Channel* channel, std::string &topic);
- void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector<TranslateType>& types);
void SendSNONotice(char snomask, const std::string& text) CXX11_OVERRIDE;
void PushToClient(User* target, const std::string &rawline);
void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype);