3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00

relay/commands: reformat showuser output slightly

This commit is contained in:
James Lu 2016-05-21 23:05:39 -07:00
parent 7338314e70
commit 8c55eb43e7
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def showuser(irc, source, args):
f = lambda s: irc.msg(source, s)
userobj = irc.users[u]
f('Information on user \x02%s\x02 (%s@%s): %s' % (userobj.nick, userobj.ident,
f('Showing information on user \x02%s\x02 (%s@%s): %s' % (userobj.nick, userobj.ident,
userobj.host, userobj.realname))
sid = irc.getServer(u)

View File

@ -1618,6 +1618,7 @@ def showuser(irc, source, args):
return
u = irc.nickToUid(target)
if u:
irc.msg(source, "Showing relay information on user \x02%s\x02:" % irc.users[u].nick)
try:
userpair = getOrigUser(irc, u) or (irc.name, u)
remoteusers = relayusers[userpair].items()