diff options
| author | 2022-09-09 02:01:47 +0100 | |
|---|---|---|
| committer | 2022-09-09 02:16:13 +0100 | |
| commit | c56bea9d5fcbf239a63992eb9a141b43cb780184 (patch) | |
| tree | 230c371b4f0dbbe98ddd774d219daf8df5b0d4c5 /src/modules/m_knock.cpp | |
| parent | Default allow_empty_last_param to false. (diff) | |
Make internal penalty be specified in millisecs instead of seconds.
This removes the need to multiply it later.
Diffstat (limited to 'src/modules/m_knock.cpp')
| -rw-r--r-- | src/modules/m_knock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 7d11fee7d..836164268 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -75,8 +75,8 @@ public: , inviteonlymode(Creator, "inviteonly") , inviteapi(Creator) { + penalty = 5000; syntax = { "<channel> :<reason>" }; - Penalty = 5; } CmdResult Handle(User* user, const Params& parameters) override |
