aboutsummaryrefslogtreecommitdiff
path: root/modules/delaymsg.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-22 14:29:12 +0000
committerGravatar Sadie Powell2025-03-22 14:37:15 +0000
commit30d0f2827215f635f4cdefed8300c1c085ae953c (patch)
tree7fc4837accfb8d7bed95449eeb816e84bfa87ea6 /modules/delaymsg.cpp
parentAllow reloading the geolocation database with a module rehash. (diff)
parentAllow using the long duration format in the xline message. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/delaymsg.cpp')
-rw-r--r--modules/delaymsg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/delaymsg.cpp b/modules/delaymsg.cpp
index 3ed216ea7..aea668eb5 100644
--- a/modules/delaymsg.cpp
+++ b/modules/delaymsg.cpp
@@ -141,7 +141,8 @@ ModResult ModuleDelayMsg::HandleMessage(User* user, const MessageTarget& target)
return MOD_RES_PASSTHRU;
const std::string message = FMT::format("You cannot send messages to this channel until you have been a member for {}.",
- Duration::ToHuman(len));
+ Duration::ToLongString(len));
+
user->WriteNumeric(Numerics::CannotSendTo(channel, message));
return MOD_RES_DENY;
}