diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-25 16:12:24 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-25 16:12:24 +0000 |
| commit | 8fc031fb84e7e266fbdf476b59d97f529c28dc36 (patch) | |
| tree | 07ff1458e48da24b41b8800537409fe1f30d7ecd /src/core | |
| parent | d8c4e705a2139682e6da65b864097df8d66f8432 (diff) | |
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
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/os_jupe.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
