3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

servermaps: removing leading - from entries

This commit is contained in:
James Lu 2016-10-07 18:51:31 -07:00
parent e2e5de009b
commit 386c71475a

View File

@ -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)