diff options
Diffstat (limited to 'modules/chanserv/chanserv.cpp')
-rw-r--r-- | modules/chanserv/chanserv.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp index 38d2f0ef0..a79534d93 100644 --- a/modules/chanserv/chanserv.cpp +++ b/modules/chanserv/chanserv.cpp @@ -280,16 +280,17 @@ public: { if (!params.empty() || source.c || source.service != *ChanServ) return; + time_t chanserv_expire = Config->GetModule(this).Get<time_t>("expire", "30d"); - if (chanserv_expire >= 86400) + if (chanserv_expire) { source.Reply(" "); source.Reply(_( - "Note that any channel which is not used for %lu days " + "Note that any channel which is not used for %s " "(i.e. which no user on the channel's access list enters " "for that period of time) will be automatically dropped." ), - (unsigned long)chanserv_expire / 86400); + Anope::Duration(chanserv_expire, source.nc).c_str()); } if (source.IsServicesOper()) { |