Skip to content

Commit

Permalink
Merge branch 'hotfix/announcer_settings' into 'master'
Browse files Browse the repository at this point in the history
Fixed announcer allowed nicknames configuration

See merge request hull-seals/code/irc/halpybot!30
  • Loading branch information
Rixxan committed Nov 20, 2020
2 parents 5d22458 + 76f39f1 commit ac2161f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def on_connect(self):
async def on_channel_message(self, target, nick, message):
await super().on_channel_message(target, nick, message)
await commandhandler.on_channel_message(self, target, nick, message)
nicks = [entry.strip() for entry in config.get('Channels', 'ChannelList').split(',')]
nicks = [entry.strip() for entry in config.get('Announcer', 'nicks').split(',')]
if target in config['Announcer']['channel'] and nick in nicks:
await announcer.on_channel_message(self, target, nick, message)

Expand Down

0 comments on commit ac2161f

Please sign in to comment.