diff options
| author | Adam <Adam@anope.org> | 2013-07-26 07:36:17 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-07-26 07:38:42 -0400 |
| commit | 2450a64bf4dc55635c9f4c1c829f149dc6621b41 (patch) | |
| tree | e946c4a76eb841b80671d6da6d6ad3e3a56a0711 /modules | |
| parent | b48293a6327a5e28baf528cda004c1d5aeea872d (diff) | |
Interally quit servers when juped
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands/os_jupe.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 << ")"; |
