From 58d2882fb5ce9e4104034bb89c6f0ce89a1cf66c Mon Sep 17 00:00:00 2001 From: codemastr Date: Sun, 11 Jan 2004 15:38:24 +0000 Subject: [PATCH] Fixed a /kick bug --- Changes | 1 + src/channel.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 686269562..831d94285 100644 --- a/Changes +++ b/Changes @@ -2705,3 +2705,4 @@ seen. gmtime warning still there - Fixed a problem caused by the previous change - Fixed some compile warnings - Made CmodeAdd set MODERR_NOERROR when no error occurs (#0001484) reported by AngryWolf +- Fixed a bug in /kick reported by rav2k (#0001490) diff --git a/src/channel.c b/src/channel.c index 676299899..c1145dea3 100644 --- a/src/channel.c +++ b/src/channel.c @@ -4146,7 +4146,8 @@ CMD_FUNC(m_kick) if (check_channelmask(sptr, cptr, name)) continue; /* Store "sptr" access flags */ - sptr_flags = get_access(sptr, chptr); + if (IsPerson(sptr)) + sptr_flags = get_access(sptr, chptr); if (!IsServer(cptr) && !IsULine(sptr) && !op_can_override(sptr) && !(sptr_flags & CHFL_ISOP) && !(sptr_flags & CHFL_HALFOP)) {