From 2450a64bf4dc55635c9f4c1c829f149dc6621b41 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 26 Jul 2013 07:36:17 -0400 Subject: Interally quit servers when juped --- modules/commands/os_jupe.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/commands/os_jupe.cpp b/modules/commands/os_jupe.cpp index fbade0e82..429c5e998 100644 --- a/modules/commands/os_jupe.cpp +++ b/modules/commands/os_jupe.cpp @@ -33,9 +33,11 @@ class CommandOSJupe : public Command else { Anope::string rbuf = "Juped by " + source.GetNick() + (!reason.empty() ? ": " + reason : ""); + /* Generate the new sid before quitting the old server, so they can't collide */ + Anope::string sid = Servers::TS6_SID_Retrieve(); if (server) IRCD->SendSquit(server, rbuf); - Server *juped_server = new Server(Me, jserver, 1, rbuf, Servers::TS6_SID_Retrieve(), true); + Server *juped_server = new Server(Me, jserver, 1, rbuf, sid, true); IRCD->SendServer(juped_server); Log(LOG_ADMIN, source, this) << "on " << jserver << " (" << rbuf << ")"; -- cgit