3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 18:54:05 +01:00

relay: remove another _ in opertype handling

This commit is contained in:
James Lu 2016-07-01 21:07:07 -07:00
parent 6c8731a55a
commit e3170cda83

View File

@ -823,7 +823,10 @@ def handle_relay_whois(irc, source, command, args):
utils.add_hook(handle_relay_whois, 'PYLINK_CUSTOM_WHOIS') utils.add_hook(handle_relay_whois, 'PYLINK_CUSTOM_WHOIS')
def handle_operup(irc, numeric, command, args): def handle_operup(irc, numeric, command, args):
newtype = args['text'] + '_(remote)' """
Handles setting oper types on relay clients during oper up.
"""
newtype = args['text'] + ' (remote)'
for netname, user in relayusers[(irc.name, numeric)].items(): for netname, user in relayusers[(irc.name, numeric)].items():
log.debug('(%s) relay.handle_opertype: setting OPERTYPE of %s/%s to %s', log.debug('(%s) relay.handle_opertype: setting OPERTYPE of %s/%s to %s',
irc.name, user, netname, newtype) irc.name, user, netname, newtype)