1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-08 11:46:46 +02:00

Make test clients compatible with userstatus kinds

No features were added, just fixed callbacks.
This commit is contained in:
Sebastian Stal
2013-08-05 12:30:40 -07:00
parent 805eb0195a
commit 51598d626a
3 changed files with 8 additions and 8 deletions

2
chat.c
View File

@ -161,7 +161,7 @@ void execute(ToxWindow* self, ChatContext* ctx, char* cmd)
return;
}
msg++;
m_set_userstatus((uint8_t*) msg, strlen(msg)+1);
m_set_userstatus(USERSTATUS_KIND_RETAIN, (uint8_t*) msg, strlen(msg)+1);
wprintw(ctx->history, "Status set to: %s\n", msg);
}
else if (!strncmp(cmd, "/nick ", strlen("/nick "))) {