diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-10 17:19:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-10 17:19:01 +0000 |
commit | 1b9a5b15ea689d39f66b33db3040a0a03ed3ae72 (patch) | |
tree | c463361520049f5aa96289382544e2653d9cefa9 /src | |
parent | 50d65268f4af9caf5e990e6323607b30217d7c60 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_messageflood.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } } } |