summaryrefslogtreecommitdiff
path: root/modules/commands/os_jupe.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-26 21:40:16 -0400
committerAdam <Adam@anope.org>2013-07-26 21:40:16 -0400
commitfde83f6564c38635c7bfebd7edb60f30b012189c (patch)
treef4a56f82280ecb1f3ed3291b44c6afda72a0fce2 /modules/commands/os_jupe.cpp
parentf0f43cf4264c68d638cd5920877d088c6c278435 (diff)
Rethink jupe/squit thing somewhat. Workaround for the inspircd rsquit/squit mess
Diffstat (limited to 'modules/commands/os_jupe.cpp')
-rw-r--r--modules/commands/os_jupe.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands/os_jupe.cpp b/modules/commands/os_jupe.cpp
index 429c5e998..de6fa76f4 100644
--- a/modules/commands/os_jupe.cpp
+++ b/modules/commands/os_jupe.cpp
@@ -36,7 +36,10 @@ class CommandOSJupe : public Command
/* 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->Delete(rbuf);
+ }
Server *juped_server = new Server(Me, jserver, 1, rbuf, sid, true);
IRCD->SendServer(juped_server);