From 5955d3f90fc269097fde57935f2d9ae84f71198c Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 7 Jul 2017 13:37:16 -0700 Subject: [PATCH] p10: expand nick!user@host only for topic setters that are clients --- protocols/p10.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocols/p10.py b/protocols/p10.py index 30bfd2d..3688a5a 100644 --- a/protocols/p10.py +++ b/protocols/p10.py @@ -674,7 +674,11 @@ class P10Protocol(IRCS2SProtocol): if (not self.is_internal_client(source)) and (not self.is_internal_server(source)): raise LookupError('No such PyLink client/server exists.') - sendername = self.get_hostmask(source) + if source in self.users: # Expand the nick!user@host if the sender is a user + sendername = self.get_hostmask(source) + else: + # For servers, just show the server name. + sendername = self.get_friendly_name(source) creationts = self.channels[target].ts