From f0a07a46b614e2ded6103615dc5813a5dc5f5668 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 6 Apr 2008 23:18:19 +0000 Subject: Fix fake direction in TOPIC, you cant use a uuid as a command origin in the send functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9393 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/ftopic.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree/ftopic.cpp b/src/modules/m_spanningtree/ftopic.cpp index 15a2c962f..80854f3b1 100644 --- a/src/modules/m_spanningtree/ftopic.cpp +++ b/src/modules/m_spanningtree/ftopic.cpp @@ -57,7 +57,11 @@ bool TreeSocket::ForceTopic(const std::string &source, std::deque & /* all done, send it on its way */ params[3] = ":" + params[3]; - Utils->DoOneToAllButSender(source,"FTOPIC",params,nsource); + User* u = Instance->FindNick(nsource); + if (u) + Utils->DoOneToAllButSender(u->uuid,"FTOPIC",params,u->server); + else + Utils->DoOneToAllButSender(source,"FTOPIC",params,nsource); } } -- cgit v1.2.3