mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 22:55:04 -06:00
Clans: covert constructor
Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
parent
69924c43ed
commit
19e9dcbbef
@ -454,7 +454,7 @@ namespace clan
|
|||||||
|
|
||||||
pugi::xml_attribute jid = info.attribute("jid");
|
pugi::xml_attribute jid = info.attribute("jid");
|
||||||
std::string npid_str = jid.as_string();
|
std::string npid_str = jid.as_string();
|
||||||
std::string username = fmt::split(npid_str, {std::string("@")})[0];
|
std::string username = fmt::split(npid_str, {"@"})[0];
|
||||||
|
|
||||||
SceNpId npid;
|
SceNpId npid;
|
||||||
if (!strcmp(username.c_str(), nph.get_npid().handle.data))
|
if (!strcmp(username.c_str(), nph.get_npid().handle.data))
|
||||||
@ -522,7 +522,7 @@ namespace clan
|
|||||||
for (pugi::xml_node info = list.child("info"); info; info = info.next_sibling("info"))
|
for (pugi::xml_node info = list.child("info"); info; info = info.next_sibling("info"))
|
||||||
{
|
{
|
||||||
std::string npid_str = info.attribute("jid").as_string();
|
std::string npid_str = info.attribute("jid").as_string();
|
||||||
std::string username = fmt::split(npid_str, {std::string("@")})[0];
|
std::string username = fmt::split(npid_str, {"@"})[0];
|
||||||
|
|
||||||
SceNpId npid;
|
SceNpId npid;
|
||||||
if (!strcmp(username.c_str(), nph.get_npid().handle.data))
|
if (!strcmp(username.c_str(), nph.get_npid().handle.data))
|
||||||
@ -978,7 +978,7 @@ namespace clan
|
|||||||
std::string msg_date = node.child("msg-date").text().as_string();
|
std::string msg_date = node.child("msg-date").text().as_string();
|
||||||
|
|
||||||
SceNpId npid;
|
SceNpId npid;
|
||||||
std::string username = fmt::split(npid_str, {std::string("@")})[0];
|
std::string username = fmt::split(npid_str, {"@"})[0];
|
||||||
|
|
||||||
if (!strcmp(username.c_str(), nph.get_npid().handle.data))
|
if (!strcmp(username.c_str(), nph.get_npid().handle.data))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user