From fb91ff8ea34f1f0904d5f26d7883a171b7ca705c Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 17 Sep 2015 19:07:37 -0700 Subject: [PATCH] Remove allow_abcd attributes from protocols (not needed anymore) --- classes.py | 6 ------ protocols/inspircd.py | 3 --- 2 files changed, 9 deletions(-) diff --git a/classes.py b/classes.py index 0834a4f..6d3d340 100644 --- a/classes.py +++ b/classes.py @@ -405,12 +405,6 @@ class Protocol(): self.casemapping = 'rfc1459' self.hook_map = {} - # Whether the IRCd allows forcing user mode changes on other servers' clients. - self.allow_forceset_usermodes = False - - # Ditto, but for setting user mode +o. InspIRCd forbids this as an example. - self.allow_forceoper = False - class FakeProto(Protocol): """Dummy protocol module for testing purposes.""" def handle_events(self, data): diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 488372e..7a8086c 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -27,9 +27,6 @@ class InspIRCdProtocol(TS6BaseProtocol): self.sidgen = utils.TS6SIDGenerator(self.irc.serverdata["sidrange"]) self.uidgen = {} - # Whether the IRCd allows forcing user mode changes on other servers' clients. - self.allow_forceset_usermodes = True - def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(), server=None, ip='0.0.0.0', realname=None, ts=None, opertype=None, manipulatable=False):