mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
servermaps: removing leading - from entries
This commit is contained in:
parent
e2e5de009b
commit
386c71475a
@ -68,9 +68,9 @@ def _map(irc, source, args, show_relay=True):
|
|||||||
serverusers = len(serverlist[leaf].users)
|
serverusers = len(serverlist[leaf].users)
|
||||||
if is_relay_server:
|
if is_relay_server:
|
||||||
# Skip showing user data for relay servers.
|
# Skip showing user data for relay servers.
|
||||||
reply("%s-\x02%s\x02[%s] (via PyLink Relay)" % (' '*hops, serverlist[leaf].name, leaf))
|
reply("%s\x02%s\x02[%s] (via PyLink Relay)" % (' '*hops, serverlist[leaf].name, leaf))
|
||||||
else:
|
else:
|
||||||
reply("%s-\x02%s\x02[%s]: %s user(s) (%s%%)" % (' '*hops, serverlist[leaf].name, leaf,
|
reply("%s\x02%s\x02[%s]: %s user(s) (%s%%)" % (' '*hops, serverlist[leaf].name, leaf,
|
||||||
serverusers, _percent(serverusers, usercount)))
|
serverusers, _percent(serverusers, usercount)))
|
||||||
showall(ircobj, leaf, hops, is_relay_server=is_relay_server)
|
showall(ircobj, leaf, hops, is_relay_server=is_relay_server)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user