From cffa99084c867184848764e36e41b7b131957c82 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Mon, 14 Nov 2005 21:17:07 +0000 Subject: [PATCH] Fix test for whether a client's own server is kicking him. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1550 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/m_kick.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 975d992..6f84307 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-14 Michael Poole + + * ircd/m_kick.c (ms_kick): Fix test for whether a client's own + server is kicking him. + 2005-11-13 Michael Poole * include/patchlevel.h (PATCHLEVEL): Bump for pre04. diff --git a/ircd/m_kick.c b/ircd/m_kick.c index 813dfc4..2c95a8e 100644 --- a/ircd/m_kick.c +++ b/ircd/m_kick.c @@ -213,7 +213,7 @@ int ms_kick(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) /* 2002-10-17: Don't send HACK if the users local server is kicking them */ if (IsServer(sptr) && !IsBurstOrBurstAck(sptr) && - sptr!=cli_from(who)) + sptr!=cli_user(who)->server) sendto_opmask_butone(0, SNO_HACK4, "HACK: %C KICK %H %C %s", sptr, chptr, who, comment); -- 2.20.1