diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-05 00:52:10 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-05 00:52:10 +0500 |
| commit | 16c648abdc6d052fe9d8efa5f4e048e25f911c34 (patch) | |
| tree | 54ae8107506c729961fe65c54ab5351bdb2a4a54 | |
| parent | 55f4e1b6eb348534aac26a9380682a8c2be1901e (diff) | |
fix: bot answers itself
| -rw-r--r-- | bot/src/handlers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/src/handlers.cpp b/bot/src/handlers.cpp index 1382bc5..072c039 100644 --- a/bot/src/handlers.cpp +++ b/bot/src/handlers.cpp @@ -145,7 +145,8 @@ namespace bot::handlers { std::optional<command::Requester> requester = command::get_requester(message, conn, bundle.configuration); - if (!requester.has_value()) { + if (!requester.has_value() || requester->user.get_alias_name() == + bundle.irc_client.get_bot_username()) { return; } |
