Changeset - a8128fde219e
[Not reviewed]
0 1 0
Jan Kaluza - 10 years ago 2016-02-20 18:24:41
jkaluza@redhat.com
Slack: use lower-case room name
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
spectrum/src/frontends/slack/SlackSession.cpp
Show inline comments
 
@@ -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));
 
}
0 comments (0 inline, 0 general)