diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-01-08 13:06:23 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-01-08 13:11:50 +0000 |
| commit | f083795c79fc062951d0253b4babf7e3b48c6ccb (patch) | |
| tree | d40d77a317f31e7d8acb6db3df85dbd3e3efbda9 /modules/commands/ns_register.cpp | |
| parent | 5db79c1e242d4c06d1aeb2b09f99b8254b7fb5de (diff) | |
Fix various format string issues.
Diffstat (limited to 'modules/commands/ns_register.cpp')
| -rw-r--r-- | modules/commands/ns_register.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 7fdca9d03..a5281b4be 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -152,7 +152,8 @@ public: time_t reg_delay = Config->GetModule("nickserv")->Get<time_t>("regdelay"); if (u && !u->HasMode("OPER") && nickregdelay && Anope::CurTime - u->timestamp < nickregdelay) { - source.Reply(_("You must have been using this nick for at least %d seconds to register."), nickregdelay); + source.Reply(_("You must have been using this nick for at least %lu seconds to register."), + (unsigned long)nickregdelay); return; } @@ -198,7 +199,10 @@ public: if (Config->GetModule("nickserv")->Get<bool>("forceemail", "yes") && email.empty()) this->OnSyntaxError(source, ""); else if (u && Anope::CurTime < u->lastnickreg + reg_delay) - source.Reply(_("Please wait %d seconds before using the REGISTER command again."), (u->lastnickreg + reg_delay) - Anope::CurTime); + { + source.Reply(_("Please wait %lu seconds before using the REGISTER command again."), + (unsigned long)(u->lastnickreg + reg_delay) - Anope::CurTime); + } else if (NickAlias::Find(u_nick) != NULL) source.Reply(NICK_ALREADY_REGISTERED, u_nick.c_str()); else if (pass.equals_ci(u_nick)) |
