Skip to content

Commit b872812

Browse files
committed
Merge branch 'develop'
2 parents 3e4b348 + f438d2f commit b872812

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/daf/guild/autoguild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def _reset_auto_join_timer(self):
253253

254254
def _check_name_match(self, name: str) -> bool:
255255
return (
256+
name is not None and
256257
re.search(self.include_pattern, name) is not None and
257258
(self.exclude_pattern is None or re.search(self.exclude_pattern, name) is None)
258259
)

src/daf/message/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ def _get_channels(self) -> List[ChannelType]:
474474
perms = channel.permissions_for(member)
475475
name = channel.name
476476
if (
477+
name is not None and
477478
(perms.send_messages or (perms.connect and perms.stream and perms.speak)) and
478479
re.search(self.include_pattern, name) is not None and
479480
(self.exclude_pattern is None or re.search(self.exclude_pattern, name) is None)

0 commit comments

Comments
 (0)