summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/rconnect.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-01 16:17:14 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-01 16:17:14 +0100
commitd6eb4a1fc5b86bfb5467108d89923c7b64f27aed (patch)
treed86df061f5b8b519eb89b100d502e046b07fecc9 /src/modules/m_spanningtree/rconnect.cpp
parent49e2df0307b41f76529f26da2fa26456c179cdb2 (diff)
Send NOTICEs that can go to both local and remote users with User::WriteRemoteNotice()
Diffstat (limited to 'src/modules/m_spanningtree/rconnect.cpp')
-rw-r--r--src/modules/m_spanningtree/rconnect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/rconnect.cpp b/src/modules/m_spanningtree/rconnect.cpp
index c5d3a5b52..8b8757a07 100644
--- a/src/modules/m_spanningtree/rconnect.cpp
+++ b/src/modules/m_spanningtree/rconnect.cpp
@@ -36,7 +36,7 @@ CmdResult CommandRConnect::Handle (const std::vector<std::string>& parameters, U
/* First see if the server which is being asked to connect to another server in fact exists */
if (!Utils->FindServerMask(parameters[0]))
{
- ((ModuleSpanningTree*)(Module*)creator)->RemoteMessage(user, "*** RCONNECT: Server \002%s\002 isn't connected to the network!", parameters[0].c_str());
+ user->WriteRemoteNotice(InspIRCd::Format("*** RCONNECT: Server \002%s\002 isn't connected to the network!", parameters[0].c_str()));
return CMD_FAILURE;
}