mirror of
https://github.com/anope/anope.git
synced 2026-07-09 01:23: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user