From 9e73af050cbdb89fe209db676bcf650867d44c4b Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 6 Sep 2015 22:39:40 -0700 Subject: [PATCH] relay: unpluralize "relayWhoisHandlers" There's only one handler, why did I make it plural? --- plugins/relay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index 8f2e69e..81d71fb 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -24,7 +24,7 @@ relayusers = defaultdict(dict) spawnlocks = defaultdict(threading.Lock) savecache = ExpiringDict(max_len=5, max_age_seconds=10) -def relayWhoisHandlers(irc, target): +def relayWhoisHandler(irc, target): user = irc.users[target] orig = getLocalUser(irc, target) if orig: @@ -33,7 +33,7 @@ def relayWhoisHandlers(irc, target): return [320, "%s :is a remote user connected via PyLink Relay. Home " "network: %s; Home nick: %s" % (user.nick, network, remotenick)] -world.whois_handlers.append(relayWhoisHandlers) +world.whois_handlers.append(relayWhoisHandler) def normalizeNick(irc, netname, nick, separator=None, uid=''): separator = separator or irc.serverdata.get('separator') or "/"