3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

p10: expand nick!user@host only for topic setters that are clients

This commit is contained in:
James Lu 2017-07-07 13:37:16 -07:00
parent c2f12460da
commit 5955d3f90f

View File

@ -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