Skip to content

Commit b40e3ee

Browse files
authored
Update auth.cpp
1 parent 99633ae commit b40e3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ bool KeyAuth::api::chatsend(std::string message, std::string channel)
250250
return json[("success")];
251251
}
252252

253-
void KeyAuth::api::changeusername(std::string newusername)
253+
void KeyAuth::api::changeUsername(std::string newusername)
254254
{
255255
checkInit();
256256

@@ -1143,7 +1143,7 @@ std::string KeyAuth::api::fetchonline()
11431143

11441144
std::string onlineusers;
11451145

1146-
int y = atoi(api::data.numOnlineUsers.c_str());
1146+
int y = atoi(api::app_data.numOnlineUsers.c_str());
11471147
for (int i = 0; i < y; i++)
11481148
{
11491149
onlineusers.append(json[XorStr("users")][i][XorStr("credential")]); onlineusers.append(XorStr("\n"));

0 commit comments

Comments
 (0)