Skip to content

Commit 67ce9b3

Browse files
committed
Completely remove ignore_bots, since I have a new idea for this
1 parent 77c014e commit 67ce9b3

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

cloudbot/plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ class Hook:
549549
:type function_name: str
550550
:type required_args: list[str]
551551
:type threaded: bool
552-
:type ignore_bots: bool
553552
:type permissions: list[str]
554553
:type single_thread: bool
555554
"""
@@ -574,7 +573,6 @@ def __init__(self, _type, plugin, func_hook):
574573
else:
575574
self.threaded = True
576575

577-
self.ignore_bots = func_hook.kwargs.pop("ignorebots", False)
578576
self.permissions = func_hook.kwargs.pop("permissions", [])
579577
self.single_thread = func_hook.kwargs.pop("singlethread", False)
580578

@@ -587,8 +585,8 @@ def description(self):
587585
return "{}:{}".format(self.plugin.title, self.function_name)
588586

589587
def __repr__(self):
590-
return "type: {}, plugin: {}, ignore_bots: {}, permissions: {}, single_thread: {}, threaded: {}".format(
591-
self.type, self.plugin.title, self.ignore_bots, self.permissions, self.single_thread, self.threaded
588+
return "type: {}, plugin: {}, permissions: {}, single_thread: {}, threaded: {}".format(
589+
self.type, self.plugin.title, self.permissions, self.single_thread, self.threaded
592590
)
593591

594592

plugins/core_sieve.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ def sieve_suite(bot, event, _hook):
3838
global buckets
3939

4040
conn = event.conn
41-
# check ignore bots
42-
if event.irc_command == 'PRIVMSG' and event.nick.endswith('bot') and _hook.ignore_bots:
43-
return None
4441

4542
# check acls
4643
acl = conn.config.get('acls', {}).get(_hook.function_name)

0 commit comments

Comments
 (0)