]> git.aero2k.de Git - urlbot-v3.git/commit
Let room moderators toggle plugins, not just configured admins master
authorThorsten <mail@aero2k.de>
Fri, 11 Sep 2026 14:04:14 +0000 (16:04 +0200)
committerThorsten <mail@aero2k.de>
Fri, 11 Sep 2026 14:04:14 +0000 (16:04 +0200)
commit4562a676444593a249b467299a53e8e8bd01921a
tree23f86be517054050ef18f3c3468e75292467af12
parentb4577c569784e0d87acd2b0e87fbadfe1005ad93
Let room moderators toggle plugins, not just configured admins

The chat daemon now attaches the sender's MUC role and affiliation
(from the xep_0045 presence roster, no round-trip) to every groupchat
message it forwards, so workers can make rank-based decisions. The
plugin toggle accepts role == moderator in addition to the "admins" list.

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