From d6faad6775d2b931b9fa5878877651c68b33d214 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 16 Oct 2003 10:58:31 +0000 Subject: [PATCH] Added server reporting to the Relay.relaywhois command. --- plugins/Relay.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index d38ac9b11..14c9756c0 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -407,8 +407,12 @@ class Relay(callbacks.Privmsg): else: idle = '' signon = '' - s = '%s (%s) has been online since %s (idle for %s) and %s.' % \ - (user, hostmask, signon, idle, channels) + if '312' in d: + server = d['312'].args[2] + else: + server = '' + s = '%s (%s) has been on server %s since %s (idle for %s) and %s.' % \ + (user, hostmask, server, signon, idle, channels) replyIrc.reply(replyMsg, s) del self.whois[(irc, nick)]