From f9fee97f5f5e021620b58605f6ae18d34470d647 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 27 Aug 2003 04:56:08 +0000 Subject: [PATCH] Made channels description in relaywhois slightly more descriptive. --- plugins/Relay.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 30c7eaf86..3ef72242b 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -364,6 +364,13 @@ class Relay(callbacks.Privmsg): channels[0] = 'is on ' + channels[0] else: channels = ['isn\'t on any channels.'] + for (i, channel) in enumerate(channels): + if channel[0] == '@': + channels[i] = 'is an op on %s' % channel[1:] + elif channel[0] == '+': + channels[i] = 'is voiced on %s' % channel[1:] + elif channel[0] == '%': + channels[i] = 'is a half-op on %s' % channel[1:] channels = utils.commaAndify(channels) if '317' in d: idle = utils.timeElapsed(d['317'].args[2]) @@ -372,7 +379,7 @@ class Relay(callbacks.Privmsg): else: idle = '' signon = '' - s = '%s (%s) has been online since %s (idle for %s) and %s' % \ + s = '%s (%s) has been online since %s (idle for %s) and %s.' % \ (user, hostmask, signon, idle, channels) replyIrc.reply(replyMsg, s) del self.whois[(irc, nick)]