diff options
| author | garder500 <jeremy27.clara22@gmail.com> | 2025-05-02 00:21:01 +0200 |
|---|---|---|
| committer | garder500 <jeremy27.clara22@gmail.com> | 2025-05-02 00:21:01 +0200 |
| commit | 502ae25637f103a063c145509c051d1ce6061e4f (patch) | |
| tree | 09c49fec114326a982648ccb4ce961f092a44b19 /bot/src/main.cpp | |
| parent | 83298ee3aec687ba1c5f41fb7135e465869d4fe8 (diff) | |
Modifie la gestion des types d'activité : retourne "playing" par défaut en cas de type inconnu au lieu de lancer une exception.
Diffstat (limited to 'bot/src/main.cpp')
| -rw-r--r-- | bot/src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/main.cpp b/bot/src/main.cpp index 8007998..1edac34 100644 --- a/bot/src/main.cpp +++ b/bot/src/main.cpp @@ -18,7 +18,7 @@ dpp::activity_type activity_type_from_string(const std::string& type) { } else if (type == "competing") { return dpp::activity_type::at_competing; } else { - throw std::invalid_argument("Invalid activity type"); + return dpp::activity_type::at_game; // Default to "playing" if the type is unknown } } |
