mirror of
https://github.com/anope/anope.git
synced 2026-07-01 16:06:38 +02:00
Fixed cs_ban, os_jupe, and os_restart
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2873 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ class CommandCSBan : public Command
|
||||
c->SetMode(NULL, CMODE_BAN, mask);
|
||||
|
||||
/* We still allow host banning while not allowing to kick */
|
||||
if (c->FindUser(u2))
|
||||
if (!c->FindUser(u2))
|
||||
return MOD_CONT;
|
||||
|
||||
if (ci->HasFlag(CI_SIGNKICK) || (ci->HasFlag(CI_SIGNKICK_LEVEL) && !check_access(u, ci, CA_SIGNKICK)))
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ class CommandOSJupe : public Command
|
||||
snprintf(rbuf, sizeof(rbuf), "Juped by %s%s%s", u->nick.c_str(), reason ? ": " : "", reason ? reason : "");
|
||||
if (findserver(servlist, jserver))
|
||||
ircdproto->SendSquit(jserver, rbuf);
|
||||
Server *juped_server = new_server(me_server, jserver, rbuf, SERVER_JUPED, ircd->ts6 ? ts6_sid_retrieve() : NULL);
|
||||
Server *juped_server = new_server(me_server, jserver, rbuf, SERVER_JUPED, ircd->ts6 ? ts6_sid_retrieve() : "");
|
||||
ircdproto->SendServer(juped_server);
|
||||
|
||||
if (Config.WallOSJupe)
|
||||
|
||||
@@ -200,6 +200,8 @@ void do_restart_services()
|
||||
if (!quitmsg)
|
||||
quitmsg = "Restarting";
|
||||
ircdproto->SendSquit(Config.ServerName, quitmsg);
|
||||
/* Process to send the last bits of information before disconnecting */
|
||||
socketEngine.Process();
|
||||
delete UplinkSock;
|
||||
close_log();
|
||||
/* First don't unload protocol module, then do so */
|
||||
|
||||
Reference in New Issue
Block a user