mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Relay: remove redundant nick on join/part when hostmasks enabled
This commit is contained in:
parent
b797c7f1dc
commit
7418e78083
@ -389,7 +389,7 @@ class Relay(callbacks.Plugin):
|
|||||||
return
|
return
|
||||||
network = self._getIrcName(irc)
|
network = self._getIrcName(irc)
|
||||||
if self.registryValue('hostmasks', channel):
|
if self.registryValue('hostmasks', channel):
|
||||||
hostmask = format(' (%s)', msg.prefix)
|
hostmask = format(' (%s)', msg.prefix.split('!')[1])
|
||||||
else:
|
else:
|
||||||
hostmask = ''
|
hostmask = ''
|
||||||
s = format(_('%s%s has joined on %s'), msg.nick, hostmask, network)
|
s = format(_('%s%s has joined on %s'), msg.nick, hostmask, network)
|
||||||
@ -403,7 +403,7 @@ class Relay(callbacks.Plugin):
|
|||||||
return
|
return
|
||||||
network = self._getIrcName(irc)
|
network = self._getIrcName(irc)
|
||||||
if self.registryValue('hostmasks', channel):
|
if self.registryValue('hostmasks', channel):
|
||||||
hostmask = format(' (%s)', msg.prefix)
|
hostmask = format(' (%s)', msg.prefix.split('!')[1])
|
||||||
else:
|
else:
|
||||||
hostmask = ''
|
hostmask = ''
|
||||||
if len(msg.args) > 1:
|
if len(msg.args) > 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user