From f19c98a8f1da6de65a0b5c45310aa5cbc434fac0 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 8 Aug 2004 19:34:15 +0000 Subject: [PATCH] Extra space zapped\! --- plugins/Relay.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 746129238..97d83cb9d 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -500,11 +500,11 @@ class Relay(callbacks.Privmsg): if channel not in self.registryValue('channels'): return network = self._getIrcName(irc) - if not self.registryValue('hostmasks', channel): - hostmask = ' ' + if self.registryValue('hostmasks', channel): + hostmask = ' (%s)' % msg.prefix else: - hostmask = ' (%s) ' % msg.prefix - s = '%s%shas joined on %s' % (msg.nick, hostmask, network) + hostmask = '' + s = '%s%s has joined on %s' % (msg.nick, hostmask, network) m = ircmsgs.privmsg(channel, s) self._sendToOthers(irc, m) @@ -514,10 +514,10 @@ class Relay(callbacks.Privmsg): if channel not in self.registryValue('channels'): return network = self._getIrcName(irc) - if not self.registryValue('hostmasks', channel): - hostmask = ' ' - else: + if self.registryValue('hostmasks', channel): hostmask = ' (%s)' % msg.prefix + else: + hostmask = '' s = '%s%s has left on %s' % (msg.nick, hostmask, network) m = ircmsgs.privmsg(channel, s) self._sendToOthers(irc, m)