3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-28 05:29:25 +01:00

coreplugin: fix typo

We're looking up user modes, not channel modes.
This commit is contained in:
James Lu 2016-05-14 10:27:37 -07:00
parent 924172291f
commit f1e22685b2

View File

@ -205,7 +205,7 @@ def handle_newservice(irc, source, command, args):
host = irc.serverdata["hostname"] host = irc.serverdata["hostname"]
modes = [] modes = []
for mode in ('oper', 'hideoper', 'hidechans'): for mode in ('oper', 'hideoper', 'hidechans'):
mode = irc.cmodes.get(mode) mode = irc.umodes.get(mode)
if mode: if mode:
modes.append((mode, None)) modes.append((mode, None))