mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added server reporting to the Relay.relaywhois command.
This commit is contained in:
parent
3c676f844a
commit
d6faad6775
@ -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)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user