mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
relay: more compact "showuser" output
This commit is contained in:
parent
1c97927b5d
commit
1fcacd0d7c
@ -1157,12 +1157,12 @@ def showuser(irc, source, args):
|
|||||||
else:
|
else:
|
||||||
nicks = []
|
nicks = []
|
||||||
if remoteusers:
|
if remoteusers:
|
||||||
nicks.append('%s (home network): \x02%s\x02' % (userpair[0],
|
nicks.append('%s:\x02%s\x02' % (userpair[0],
|
||||||
world.networkobjects[userpair[0]].users[userpair[1]].nick))
|
world.networkobjects[userpair[0]].users[userpair[1]].nick))
|
||||||
for r in remoteusers:
|
for r in remoteusers:
|
||||||
remotenet, remoteuser = r
|
remotenet, remoteuser = r
|
||||||
remoteirc = world.networkobjects[remotenet]
|
remoteirc = world.networkobjects[remotenet]
|
||||||
nicks.append('%s: \x02%s\x02' % (remotenet, remoteirc.users[remoteuser].nick))
|
nicks.append('%s:\x02%s\x02' % (remotenet, remoteirc.users[remoteuser].nick))
|
||||||
irc.msg(source, "\x02Relay nicks\x02: %s" % ', '.join(nicks))
|
irc.msg(source, "\x02Relay nicks\x02: %s" % ', '.join(nicks))
|
||||||
relaychannels = []
|
relaychannels = []
|
||||||
for ch in irc.users[u].channels:
|
for ch in irc.users[u].channels:
|
||||||
|
Loading…
Reference in New Issue
Block a user