1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 07:56:38 +02:00

- Fixed possible crash with using quarantine, reported by Sephiroth (#0003151).

This commit is contained in:
Bram Matthys
2006-12-19 12:52:53 +00:00
parent 6373b83c39
commit 0f53a33401
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -1422,3 +1422,4 @@
changing nicks (was still trying to match on the old nick), reported by vonitsanet
(#0003143).
** 3.2.6-rc2 release **
- Fixed possible crash with using quarantine, reported by Sephiroth (#0003151).
+14
View File
@@ -181,6 +181,20 @@ DLLFUNC CMD_FUNC(m_nick)
return 0;
}
/* Kill quarantined opers early... */
if (IsServer(cptr) && (sptr->from->flags & FLAGS_QUARANTINE) &&
(parc >= 11) && strchr(parv[8], 'o'))
{
ircstp->is_kill++;
/* Send kill to uplink only, hasn't been broadcasted to the rest, anyway */
sendto_one(cptr, ":%s KILL %s :%s (Quarantined: no global oper privileges allowed)",
me.name, parv[1], me.name);
sendto_realops("QUARANTINE: Oper %s on server %s killed, due to quarantine",
parv[1], sptr->name);
/* (nothing to exit_client or to free, since user was never added) */
return 0;
}
/*
** Protocol 4 doesn't send the server as prefix, so it is possible
** the server doesn't exist (a lagged net.burst), in which case