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 | |
| 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')
| -rw-r--r-- | src/modules/m_cycle.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_gateway.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_knock.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_monitor.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_password_hash.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_spanningtree/override_map.cpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index 47966ccce..0b75f5d0c 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -36,7 +36,7 @@ public: CommandCycle(Module* Creator) : SplitCommand(Creator, "CYCLE", 1) { - Penalty = 3; + penalty = 3000; syntax = { "<channel> [:<reason>]" }; } diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index dbdc0cbf0..6ca99fbb2 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -133,7 +133,7 @@ public: CommandHexIP(Module* Creator) : SplitCommand(Creator, "HEXIP", 1) { - Penalty = 2; + penalty = 2000; syntax = { "<hex-ip|raw-ip>" }; } 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 diff --git a/src/modules/m_monitor.cpp b/src/modules/m_monitor.cpp index a97d0fefa..b6a0d3022 100644 --- a/src/modules/m_monitor.cpp +++ b/src/modules/m_monitor.cpp @@ -310,7 +310,7 @@ public: : SplitCommand(mod, "MONITOR", 1) , manager(managerref) { - Penalty = 2; + penalty = 2000; syntax = { "C", "L", "S", "(+|-) <nick>[,<nick>]+" }; } diff --git a/src/modules/m_password_hash.cpp b/src/modules/m_password_hash.cpp index 517183e1a..4aa384192 100644 --- a/src/modules/m_password_hash.cpp +++ b/src/modules/m_password_hash.cpp @@ -33,8 +33,8 @@ class CommandMkpasswd final public: CommandMkpasswd(Module* Creator) : Command(Creator, "MKPASSWD", 2) { + penalty = 5000; syntax = { "<hashtype> <plaintext>" }; - Penalty = 5; } CmdResult Handle(User* user, const Params& parameters) override diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp index 1df272e41..bdc6f1729 100644 --- a/src/modules/m_spanningtree/override_map.cpp +++ b/src/modules/m_spanningtree/override_map.cpp @@ -37,7 +37,7 @@ CommandMap::CommandMap(Module* Creator) : Command(Creator, "MAP", 0, 1) { - Penalty = 2; + penalty = 2000; } static inline bool IsHidden(User* user, TreeServer* server) |
