aboutsummaryrefslogtreecommitdiffstats
path: root/src/listmode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-22 10:26:43 +0100
committerGravatar Sadie Powell2024-08-22 11:12:52 +0100
commit6b123d4bc61c2db8e379dd5e681834c4053e661d (patch)
tree77621bb30f54b0c444e31a78b2c5c9a67955b723 /src/listmode.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp12
1 files changed, 6 insertions, 6 deletions
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<size_t>("limit", DEFAULT_LIST_SIZE));
if (limit.mask.empty())
- throw ModuleException(creator, fmt::format("<maxlist:chan> is empty, at {}", c->source.str()));
+ throw ModuleException(creator, FMT::format("<maxlist:chan> 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));
}