Relay: remove redundant nick on join/part when hostmasks enabled

This commit is contained in:
Valentin Lorentz 2011-06-30 15:23:17 +02:00
parent b797c7f1dc
commit 7418e78083

View File

@ -389,7 +389,7 @@ class Relay(callbacks.Plugin):
return
network = self._getIrcName(irc)
if self.registryValue('hostmasks', channel):
hostmask = format(' (%s)', msg.prefix)
hostmask = format(' (%s)', msg.prefix.split('!')[1])
else:
hostmask = ''
s = format(_('%s%s has joined on %s'), msg.nick, hostmask, network)
@ -403,7 +403,7 @@ class Relay(callbacks.Plugin):
return
network = self._getIrcName(irc)
if self.registryValue('hostmasks', channel):
hostmask = format(' (%s)', msg.prefix)
hostmask = format(' (%s)', msg.prefix.split('!')[1])
else:
hostmask = ''
if len(msg.args) > 1: