diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-05-20 18:33:14 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-05-20 18:33:14 +0800 |
| commit | 092965b583bd0c377ed5d9f2af0e0f4bb0548354 (patch) | |
| tree | c002b8c85a8de2ef636d931771e5800913338d5f /src/chatManager.hpp | |
| parent | e20099b72a14242481aefc9846cadd16657132ec (diff) | |
internal: use uintptr_t of session instance for identification
Diffstat (limited to 'src/chatManager.hpp')
| -rw-r--r-- | src/chatManager.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chatManager.hpp b/src/chatManager.hpp index 0f423f7..46b02de 100644 --- a/src/chatManager.hpp +++ b/src/chatManager.hpp @@ -1,6 +1,7 @@ #pragma once #include <memory> +#include <optional> #include <string> #include <vector> @@ -11,6 +12,7 @@ class CChatManager { struct SMessage { std::string msg; std::string username; + std::optional<uintptr_t> sender = std::nullopt; bool admin = false; }; void newMessage(const SMessage &msg); |
