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

implemented status and connectionstatus callbacks

This commit is contained in:
Jfreegman
2013-09-04 21:25:59 -04:00
parent 2f93081a42
commit f5695a4b3e
6 changed files with 183 additions and 17 deletions

View File

@ -314,6 +314,7 @@ void cmd_nick(ToxWindow *self, Tox *m, int argc, char **argv)
}
nick = argv[1];
nick[strlen(++nick)-1] = L'\0';
tox_setname(m, (uint8_t *) nick, strlen(nick) + 1);
wprintw(self->window, "Nickname set to: %s\n", nick);