Slack: use lower-case room name

This commit is contained in:
Jan Kaluza 2016-02-20 18:24:41 +01:00
parent 4e25fa4e8e
commit a8128fde21

View file

@ -203,6 +203,8 @@ void SlackSession::handleJoinMessage(const std::string &message, std::vector<std
if (args[5][0] == '#') {
args[5].erase(0, 1);
}
boost::algorithm::to_lower(args[3]);
boost::algorithm::to_lower(args[4]);
LOG4CXX_INFO(logger, m_uinfo.jid << ": Going to join the room " << args[3] << "@" << args[4] << ", transporting it to channel " << args[5]);
m_api->createChannel(args[5], m_idManager->getSelfId(), boost::bind(&SlackSession::handleJoinRoomCreated, this, _1, args));
}