mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fixed m_messageflood to free the channel if it kicks the last user. This would cause either a crash or a memory leak, probably the latter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7473 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
fed58f5c25
commit
d0e13160c5
@ -253,7 +253,8 @@ class ModuleMsgFlood : public Module
|
||||
}
|
||||
char kickmessage[MAXBUF];
|
||||
snprintf(kickmessage, MAXBUF, "Channel flood triggered (limit is %d lines in %d secs)", f->lines, f->secs);
|
||||
dest->ServerKickUser(user, kickmessage, true);
|
||||
if (!dest->ServerKickUser(user, kickmessage, true))
|
||||
delete dest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user