diff options
| author | Sadie Powell <sadie@witchery.services> | 2025-02-05 19:56:31 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2025-02-05 19:56:55 +0000 |
| commit | 86805a6b3b820d4424b4b6942dc3524568ae0dde (patch) | |
| tree | eea0286b3dde2ec9d279c9d8234922033fa594b6 /modules | |
| parent | 5d9344b6773a54c3e1706019c1910c20b5e95055 (diff) | |
Add the bot real name to the botlist info.
This is actually shown by modern clients so its useful info.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/botserv/bs_botlist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |
