From 6b123d4bc61c2db8e379dd5e681834c4053e661d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Aug 2024 10:26:43 +0100 Subject: Use C++20 instead of fmtlib when available. --- src/listmode.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/listmode.cpp') diff --git a/src/listmode.cpp b/src/listmode.cpp index 646c7ecb7..de5b77c42 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -51,12 +51,12 @@ void ListModeBase::DisplayList(User* user, Channel* channel) for (const auto& item : cd->list) user->WriteNumeric(listnumeric, channel->name, item.mask, item.setter, item.time); - user->WriteNumeric(endoflistnumeric, channel->name, fmt::format("End of channel {} list.", name)); + user->WriteNumeric(endoflistnumeric, channel->name, FMT::format("End of channel {} list.", name)); } void ListModeBase::DisplayEmptyList(User* user, Channel* channel) { - user->WriteNumeric(endoflistnumeric, channel->name, fmt::format("Channel {} list is empty.", name)); + user->WriteNumeric(endoflistnumeric, channel->name, FMT::format("Channel {} list is empty.", name)); } void ListModeBase::RemoveMode(Channel* channel, Modes::ChangeList& changelist) @@ -83,7 +83,7 @@ void ListModeBase::DoRehash() ListLimit limit(c->getString("chan", "*", 1), c->getNum("limit", DEFAULT_LIST_SIZE)); if (limit.mask.empty()) - throw ModuleException(creator, fmt::format(" is empty, at {}", c->source.str())); + throw ModuleException(creator, FMT::format(" is empty, at {}", c->source.str())); if (limit.mask == "*" || limit.mask == "#*") seen_default = true; @@ -241,15 +241,15 @@ void ListModeBase::OnParameterMissing(User* source, User* dest, Channel* channel void ListModeBase::TellListTooLong(LocalUser* source, Channel* channel, const std::string& parameter, size_t limit) { - source->WriteNumeric(ERR_BANLISTFULL, channel->name, parameter, mode, fmt::format("Channel {} list is full ({} entries)", name, limit)); + source->WriteNumeric(ERR_BANLISTFULL, channel->name, parameter, mode, FMT::format("Channel {} list is full ({} entries)", name, limit)); } void ListModeBase::TellAlreadyOnList(LocalUser* source, Channel* channel, const std::string& parameter) { - source->WriteNumeric(ERR_LISTMODEALREADYSET, channel->name, parameter, mode, fmt::format("Channel {} list already contains {}", name, parameter)); + source->WriteNumeric(ERR_LISTMODEALREADYSET, channel->name, parameter, mode, FMT::format("Channel {} list already contains {}", name, parameter)); } void ListModeBase::TellNotSet(LocalUser* source, Channel* channel, const std::string& parameter) { - source->WriteNumeric(ERR_LISTMODENOTSET, channel->name, parameter, mode, fmt::format("Channel {} list does not contain {}", name, parameter)); + source->WriteNumeric(ERR_LISTMODENOTSET, channel->name, parameter, mode, FMT::format("Channel {} list does not contain {}", name, parameter)); } -- cgit v1.3.1-10-gc9f91