Added server reporting to the Relay.relaywhois command.

This commit is contained in:
Jeremy Fincher 2003-10-16 10:58:31 +00:00
parent 3c676f844a
commit d6faad6775

View File

@ -407,8 +407,12 @@ class Relay(callbacks.Privmsg):
else:
idle = '<unknown>'
signon = '<unknown>'
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 = '<unknown>'
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)]