3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 19:24:13 +01:00

plugin stats: Missing parentheses change number of arguments

Signed-off-by: Celelibi <celelibi@gmail.com>
This commit is contained in:
Celelibi 2020-06-19 03:44:32 +02:00 committed by James Lu
parent b49d5775e2
commit 88116dbe8d

View File

@ -115,8 +115,8 @@ def handle_stats(irc, source, command, args):
for accountname, accountdata in conf.conf['login'].get('accounts', {}).items():
networks = accountdata.get('networks', [])
if irc.name in networks or not networks:
_num(243, "O %s * %s :%s" %
' '.join(accountdata.get('hosts', ['*@*']),
_num(243, "O %s * %s :%s" % (
' '.join(accountdata.get('hosts', ['*@*'])),
accountname,
'needoper' if accountdata.get('require_oper') else '')
)