diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 5d9cb5d..a48cbc9 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -532,7 +532,7 @@ class InspIRCdProtocol(TS6BaseProtocol): # <- :70MAAAAAA MODE 70MAAAAAA -i+xc target = args[0] modestrings = args[1:] - changedmodes = utils.parseModes(self.irc, numeric, modestrings) + changedmodes = utils.parseModes(self.irc, target, modestrings) utils.applyModes(self.irc, target, changedmodes) return {'target': target, 'modes': changedmodes} diff --git a/protocols/ts6.py b/protocols/ts6.py index 0e1d6f8..4ff138a 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -547,7 +547,7 @@ class TS6Protocol(TS6BaseProtocol): # <- :70MAAAAAA MODE 70MAAAAAA -i+xc target = args[0] modestrings = args[1:] - changedmodes = utils.parseModes(self.irc, numeric, modestrings) + changedmodes = utils.parseModes(self.irc, target, modestrings) utils.applyModes(self.irc, target, changedmodes) # Call the OPERED UP hook if +o is being set. if ('+o', None) in changedmodes: