1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 04:43:13 +02:00

Fix bug 997, Anope no longer crashes if a kick is non on a non-existant user.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1922 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-01-15 02:22:43 +00:00
parent c767dcac5f
commit dd6c5a57e8
+2 -2
View File
@@ -548,9 +548,9 @@ class InspIRCdProto : public IRCDProto
{
User *u = finduser(user);
if (buf)
send_cmd(source->uid, "KICK %s %s :%s", chan, u->uid, buf);
send_cmd(source->uid, "KICK %s %s :%s", chan, u ? u->uid : user, buf);
else
send_cmd(source->uid, "KICK %s %s :%s", chan, u->uid, user);
send_cmd(source->uid, "KICK %s %s :%s", chan, u ? u->uid : user, user);
}
void SendNoticeChanopsInternal(BotInfo *source, const char *dest, const char *buf)