- Fixed a local /kill bug during connection phase, reported by Gilou ().

This commit is contained in:
Bram Matthys 2003-05-06 00:18:02 +00:00
parent 114cec45b1
commit 1557bab74a
2 changed files with 8 additions and 0 deletions
Changes
src/modules

View file

@ -2129,3 +2129,4 @@ seen. gmtime warning still there
- Recoded the "version flag" system, it is now safe to have multiple modules that use the
same flag, new functions are VersionflagAdd and VersionflagDel they replace flag_add and
flag_del
- Fixed a local /kill bug during connection phase, reported by Gilou (#0000952).

View file

@ -207,6 +207,13 @@ DLLFUNC int m_kill(aClient *cptr, aClient *sptr, int parc, char *parv[])
me.name, IsWebTV(sptr) ? "PRIVMSG" : "NOTICE", parv[0], nick, acptr->name);
chasing = 1;
}
if (!IsPerson(acptr))
{
/* Nick exists but user is not registered yet: IOTW "doesn't exist". -- Syzop */
sendto_one(sptr, err_str(ERR_NOSUCHNICK),
me.name, parv[0], nick);
continue;
}
if ((!MyConnect(acptr) && MyClient(cptr) && !OPCanGKill(cptr))
|| (MyConnect(acptr) && MyClient(cptr)
&& !OPCanLKill(cptr)))