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

relay: fix a typo: CLIENTBOT_WHITELISTED_UMODES -> CLIENTBOT_WHITELISTED_CMODES

This commit is contained in:
James Lu 2018-03-30 12:01:38 -07:00
parent 310ad345a3
commit c978e1c52f

View File

@ -881,7 +881,7 @@ WHITELISTED_UMODES = {
'stripcolor', 'stripcolor',
'wallops' 'wallops'
} }
CLIENTBOT_WHITELISTED_UMODES = {'admin', 'ban', 'banexception', 'halfop', 'invex', 'op', 'owner', 'voice'} CLIENTBOT_WHITELISTED_CMODES = {'admin', 'ban', 'banexception', 'halfop', 'invex', 'op', 'owner', 'voice'}
CLIENTBOT_MODESYNC_OPTIONS = ('none', 'half', 'full') CLIENTBOT_MODESYNC_OPTIONS = ('none', 'half', 'full')
def get_supported_cmodes(irc, remoteirc, channel, modes): def get_supported_cmodes(irc, remoteirc, channel, modes):
""" """
@ -903,7 +903,7 @@ def get_supported_cmodes(irc, remoteirc, channel, modes):
if modesync == 'none': if modesync == 'none':
return [] # Do nothing return [] # Do nothing
elif modesync == 'half': elif modesync == 'half':
whitelist = CLIENTBOT_WHITELISTED_UMODES whitelist = CLIENTBOT_WHITELISTED_CMODES
supported_modes = [] supported_modes = []
for modepair in modes: for modepair in modes: