From 86805a6b3b820d4424b4b6942dc3524568ae0dde Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 5 Feb 2025 19:56:31 +0000 Subject: Add the bot real name to the botlist info. This is actually shown by modern clients so its useful info. --- modules/botserv/bs_botlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/botserv/bs_botlist.cpp b/modules/botserv/bs_botlist.cpp index 976a54f5c..8ad7dd9c9 100644 --- a/modules/botserv/bs_botlist.cpp +++ b/modules/botserv/bs_botlist.cpp @@ -25,7 +25,7 @@ public: unsigned count = 0; ListFormatter list(source.GetAccount()); - list.AddColumn(_("Nick")).AddColumn(_("Mask")); + list.AddColumn(_("Nick")).AddColumn(_("Mask")).AddColumn(_("Real name")); for (const auto &[_, bi] : *BotListByNick) { @@ -35,6 +35,7 @@ public: ListFormatter::ListEntry entry; entry["Nick"] = (bi->oper_only ? "* " : "") + bi->nick; entry["Mask"] = bi->GetIdent() + "@" + bi->host; + entry["Real name"] = bi->realname; list.AddEntry(entry); } } -- cgit