summaryrefslogtreecommitdiff
path: root/src/message.cc
blob: a0f46f221e78ce97f50fc0c4b88b96eac67ab38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "message.hpp"

#include <fmt/format.h>

std::string message::text_with_count() const
{
	if (count > 1)
	{
		return fmt::format("{} <{}x>", text, count);
	}
	else
	{
		return text;
	}
}