mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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:
|
else:
|
||||||
idle = '<unknown>'
|
idle = '<unknown>'
|
||||||
signon = '<unknown>'
|
signon = '<unknown>'
|
||||||
s = '%s (%s) has been online since %s (idle for %s) and %s.' % \
|
if '312' in d:
|
||||||
(user, hostmask, signon, idle, channels)
|
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)
|
replyIrc.reply(replyMsg, s)
|
||||||
del self.whois[(irc, nick)]
|
del self.whois[(irc, nick)]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user