summaryrefslogtreecommitdiffstats
path: root/src/ClientInfo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientInfo.hpp')
-rw-r--r--src/ClientInfo.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp
index 57d2587..711bc71 100644
--- a/src/ClientInfo.hpp
+++ b/src/ClientInfo.hpp
@@ -107,11 +107,11 @@ public:
return toString() < other.toString();
}
- inline QString toString(bool asChatNick = false) const
+ inline QString toString(bool asChatNick = false, bool withPCName = false) const
{
if(asChatNick)
{
- return interface == Auto ? "<~auto~>" : interface == Management ? "{CLI}<" + management.name + ">" : interface == IRC ? "[IRC]<" + nick + ">" : "<" + nick + ">";
+ return interface == Auto ? "<~auto~>" : interface == Management ? "{CLI}<" + management.name + ">" : interface == IRC ? "[IRC]<" + nick + ">" : "<" + nick + (withPCName ? "|" + pcName : "") + ">";
}
else
{