]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Replace WriteLine() call with Unicast() in DoCollision()
authorAttila Molnar <attilamolnar@hush.com>
Sat, 26 Jul 2014 13:53:11 +0000 (15:53 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 26 Jul 2014 13:53:11 +0000 (15:53 +0200)
src/modules/m_spanningtree/nickcollide.cpp

index 2e840c6b82cfe852cdda48ddb574f9684fb354f0..5a375ef68b694a78363c76635007e38fb0130d1e 100644 (file)
@@ -118,8 +118,7 @@ int SpanningTreeUtilities::DoCollision(User* u, TreeServer* server, time_t remot
                 * Remote side needs to change. If this happens, we modify the UID or NICK and
                 * send back a SAVE to the source.
                 */
-               TreeSocket* sock = server->GetSocket();
-               sock->WriteLine(CmdBuilder("SAVE").push(remoteuid).push_int(remotets));
+               CmdBuilder("SAVE").push(remoteuid).push_int(remotets).Unicast(server->ServerUser);
 
                if (!bChangeLocal)
                        return 2;