From f9d5271762f03062ce4755e7da1dab2bb696a215 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 4 Jul 2019 17:23:36 +0100 Subject: [PATCH] "paramatered" -> "parametered" --- modules/line_handler/core.py | 2 +- src/IRCChannel.py | 2 +- src/IRCServer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/line_handler/core.py b/modules/line_handler/core.py index 692e2510..81c364ce 100644 --- a/modules/line_handler/core.py +++ b/modules/line_handler/core.py @@ -46,7 +46,7 @@ def handle_005(events, event): if "CHANMODES" in isupport: modes = isupport["CHANMODES"].split(",", 3) event["server"].channel_list_modes = list(modes[0]) - event["server"].channel_paramatered_modes = list(modes[1]) + event["server"].channel_parametered_modes = list(modes[1]) event["server"].channel_setting_modes = list(modes[2]) event["server"].channel_modes = list(modes[3]) if "CHANTYPES" in isupport: diff --git a/src/IRCChannel.py b/src/IRCChannel.py index f03bc837..515ad63d 100644 --- a/src/IRCChannel.py +++ b/src/IRCChannel.py @@ -118,7 +118,7 @@ class Channel(IRCObject.Object): new_arg = None if mode in self.server.channel_list_modes: new_arg = args.pop(0) - elif (mode in self.server.channel_paramatered_modes or + elif (mode in self.server.channel_parametered_modes or mode in self.server.prefix_modes): new_arg = args.pop(0) self.change_mode(remove, mode, new_arg) diff --git a/src/IRCServer.py b/src/IRCServer.py index 3dbdb7c7..69463332 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -52,7 +52,7 @@ class Server(IRCObject.Object): (("o", "@"), ("v", "+"))) self.channel_list_modes = ["b"] # type: typing.List[str] - self.channel_paramatered_modes = ["k"] # type: typing.List[str] + self.channel_parametered_modes = ["k"] # type: typing.List[str] self.channel_setting_modes = ["l"] # type: typing.List[str] self.channel_modes = [ "n", "i", "m", "t", "p", "s"