Merge branch 'relay-nick-hostmask'

This commit is contained in:
James McCoy 2011-10-22 16:10:38 -04:00
commit 05529e22a5

View File

@ -384,7 +384,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)
@ -398,7 +398,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: