3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 10:44:09 +01:00

parseModes: allow type str as modestring

This commit is contained in:
James Lu 2016-06-25 13:08:49 -07:00
parent 5e16eeea41
commit 9ea6769c54

View File

@ -480,6 +480,11 @@ class Irc():
# B = Mode that changes a setting and always has a parameter.
# C = Mode that changes a setting and only has a parameter when set.
# D = Mode that changes a setting and never has a parameter.
if type(args) == str:
# If the modestring was given as a string, split it into a list.
args = args.split()
assert args, 'No valid modes were supplied!'
usermodes = not utils.isChannel(target)
prefix = ''