]> git.aero2k.de Git - urlbot-v3.git/commit
Guard admin check against a non-list "admins" config value
authorThorsten <mail@aero2k.de>
Fri, 11 Sep 2026 10:47:18 +0000 (12:47 +0200)
committerThorsten <mail@aero2k.de>
Fri, 11 Sep 2026 10:47:18 +0000 (12:47 +0200)
commit53c1cf805f07a84c0bfb568d1687061e7da657b2
tree439a772e8a4be8f5a199d7c43c745d204800e909
parent5e90ce4e98a107cdf79230ddf2c393c86915c2d4
Guard admin check against a non-list "admins" config value

Config() never actually fails validation (the preserve_errors dict is
truthy), so "admins = TRex" without the trailing comma stays a str and
"nick in admins" would have been a substring match.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KJp2rEnVtsgbH7FLj3jubx
src/distbot/plugins/plugin_help.py
tests/test_unit/test_plugin_toggle.py