diff options
| author | ilotterytea <iltsu@alright.party> | 2024-04-21 02:09:16 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-04-21 02:09:16 +0500 |
| commit | aa21312f18ef86a335dd28272e317da959ceb9b7 (patch) | |
| tree | 038a13e38e06a4199c6af9a86bff39963be5c449 /src/irc/client.cpp | |
| parent | f2c9182dba4cbd95d7f865efddd45c592f8623bf (diff) | |
upd: renamed namespaces + added utils namespace
Diffstat (limited to 'src/irc/client.cpp')
| -rw-r--r-- | src/irc/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/client.cpp b/src/irc/client.cpp index 2d07070..e08d243 100644 --- a/src/irc/client.cpp +++ b/src/irc/client.cpp @@ -11,7 +11,7 @@ #include "message.hpp" -using namespace RedpilledBot::IRC; +using namespace bot::irc; Client::Client(std::string username, std::string password) { this->username = username; @@ -30,7 +30,8 @@ void Client::run() { case ix::WebSocketMessageType::Message: { std::cout << "Got a message: " << msg->str << std::endl; - std::vector<std::string> lines = split_text(msg->str, '\n'); + std::vector<std::string> lines = + utils::string::split_text(msg->str, '\n'); for (std::string &line : lines) { line.erase(std::remove_if(line.begin(), line.end(), |
