mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +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)
|
f = lambda s: irc.msg(source, s)
|
||||||
userobj = irc.users[u]
|
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))
|
userobj.host, userobj.realname))
|
||||||
|
|
||||||
sid = irc.getServer(u)
|
sid = irc.getServer(u)
|
||||||
|
@ -1618,6 +1618,7 @@ def showuser(irc, source, args):
|
|||||||
return
|
return
|
||||||
u = irc.nickToUid(target)
|
u = irc.nickToUid(target)
|
||||||
if u:
|
if u:
|
||||||
|
irc.msg(source, "Showing relay information on user \x02%s\x02:" % irc.users[u].nick)
|
||||||
try:
|
try:
|
||||||
userpair = getOrigUser(irc, u) or (irc.name, u)
|
userpair = getOrigUser(irc, u) or (irc.name, u)
|
||||||
remoteusers = relayusers[userpair].items()
|
remoteusers = relayusers[userpair].items()
|
||||||
|
Loading…
Reference in New Issue
Block a user