summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 23:18:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 23:18:19 +0000
commitf0a07a46b614e2ded6103615dc5813a5dc5f5668 (patch)
tree4da8ff7ec8fc4960bae0e8666f817ee9ae0b1e2e /src
parenta2cc6107b52d0f02214e35d8ea854be6188c58b4 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/ftopic.cpp6
1 files changed, 5 insertions, 1 deletions
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<std::string> &
/* 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);
}
}