From 1b9a5b15ea689d39f66b33db3040a0a03ed3ae72 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 10 Feb 2007 17:19:01 +0000 Subject: Improve +f kick message: [17:25] --- You have been kicked from #test by test2.chatspike.net (Channel flood triggered (limit is 4 lines in 20 secs)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6564 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_messageflood.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index bf071e18d..012c95a8e 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -236,7 +236,9 @@ class ModuleMsgFlood : public Module Event rmode((char *)&n, NULL, "send_mode"); rmode.Send(ServerInstance); } - dest->ServerKickUser(user, "Channel flood triggered (mode +f)", true); + 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); } } } -- cgit v1.2.3