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:
parent
7338314e70
commit
8c55eb43e7
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user