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)) {