summaryrefslogtreecommitdiff
path: root/src/irc/client.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-21 16:33:23 +0500
committerilotterytea <iltsu@alright.party>2024-04-21 16:33:23 +0500
commit854e052b3a75bd4f77dd404341ea5c1070a2009c (patch)
treec4d2533bb0cad05ded7575aaea1945414e14c88a /src/irc/client.hpp
parent88bc263e64b62995a57bfb8231bb10c6da6fa090 (diff)
feat: join() method
Diffstat (limited to 'src/irc/client.hpp')
-rw-r--r--src/irc/client.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/client.hpp b/src/irc/client.hpp
index 0194750..2598550 100644
--- a/src/irc/client.hpp
+++ b/src/irc/client.hpp
@@ -16,6 +16,7 @@ namespace bot {
void run();
+ bool join(const std::string &channel_login);
void raw(const std::string &raw_message);
template <MessageType T>
@@ -43,6 +44,8 @@ namespace bot {
bool is_connected = false;
std::vector<std::string> pool;
+ std::vector<std::string> joined_channels;
+
// Message handlers
typename MessageHandler<MessageType::Privmsg>::fn onPrivmsg;
};