[PR #1] [MERGED] fix(prefix): prevent multiple prefix usage #1

Closed
opened 2026-06-03 15:03:49 +02:00 by arthur · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/arthur-pbty/shadowbot/pull/1
Author: @arthur-pbty
Created: 4/11/2026
Status: Merged
Merged: 4/11/2026
Merged by: @arthur-pbty

Base: masterHead: fix/prefix-multiple


📝 Commits (1)

  • d39eeee fix(prefix): prevent multiple prefix usage like ++++ping

📊 Changes

3 files changed (+7 additions, -9 deletions)

View changed files

📝 src/commands/automation/piconly.rs (+3 -4)
📝 src/commands/mod.rs (+1 -1)
📝 src/events/message.rs (+3 -4)

📄 Description

Summary

Prevents commands from being executed when multiple prefixes are used (e.g. ++++ping).

Changes

  • Added validation to reject messages starting with repeated prefix
  • Ensures only a single prefix is accepted

Expected behavior

+ping -> works
++++ping -> ignored


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/arthur-pbty/shadowbot/pull/1 **Author:** [@arthur-pbty](https://github.com/arthur-pbty) **Created:** 4/11/2026 **Status:** ✅ Merged **Merged:** 4/11/2026 **Merged by:** [@arthur-pbty](https://github.com/arthur-pbty) **Base:** `master` ← **Head:** `fix/prefix-multiple` --- ### 📝 Commits (1) - [`d39eeee`](https://github.com/arthur-pbty/shadowbot/commit/d39eeeeaf0faf5da080cda25b0bec00ded5cbe59) fix(prefix): prevent multiple prefix usage like ++++ping ### 📊 Changes **3 files changed** (+7 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/commands/automation/piconly.rs` (+3 -4) 📝 `src/commands/mod.rs` (+1 -1) 📝 `src/events/message.rs` (+3 -4) </details> ### 📄 Description ## Summary Prevents commands from being executed when multiple prefixes are used (e.g. ++++ping). ## Changes - Added validation to reject messages starting with repeated prefix - Ensures only a single prefix is accepted ## Expected behavior +ping -> works ++++ping -> ignored --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
arthur added the pull-request label 2026-06-03 15:03:49 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arthur/shadowbot#1