From 8fc031fb84e7e266fbdf476b59d97f529c28dc36 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 25 Mar 2009 16:12:24 +0000 Subject: Fix bug #1009, patch inspired by DukePyrolator, add a TS6 SID generator from DukePyrolator, as well as change SendServer() to take a Server struct and use the result of new_server() in the SendServer() call instead. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2206 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_jupe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/os_jupe.c b/src/core/os_jupe.c index 0a8e80a4f..36dbc4376 100644 --- a/src/core/os_jupe.c +++ b/src/core/os_jupe.c @@ -36,8 +36,8 @@ class CommandOSJupe : public Command snprintf(rbuf, sizeof(rbuf), "Juped by %s%s%s", u->nick, reason ? ": " : "", reason ? reason : ""); if (findserver(servlist, jserver)) ircdproto->SendSquit(jserver, rbuf); - ircdproto->SendServer(jserver, 2, rbuf); - new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL); + Server *juped_server = new_server(me_server, jserver, rbuf, SERVER_JUPED, ircd->ts6 ? ts6_sid_retrieve() : NULL); + ircdproto->SendServer(juped_server); if (WallOSJupe) ircdproto->SendGlobops(s_OperServ, "\2%s\2 used JUPE on \2%s\2", u->nick, jserver); -- cgit