Slack: parse the bots names from RTM

This commit is contained in:
Jan Kaluza 2015-12-08 18:47:19 +01:00
parent cf2ba10533
commit bf9f7b7a41

View file

@ -302,10 +302,10 @@ void SlackAPI::getSlackUserInfo(HTTPRequest *req, bool ok, rapidjson::Document &
SlackUserInfo info;
STORE_STRING(users[i], id);
STORE_STRING(bots[i], id);
info.id = id;
STORE_STRING(users[i], name);
STORE_STRING(bots[i], name);
info.name = name;
info.isPrimaryOwner = 0;