1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 09:16:45 +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

6
main.c
View File

@ -69,7 +69,7 @@ void on_nickchange(int friendnumber, uint8_t* string, uint16_t length) {
}
}
void on_statuschange(int friendnumber, uint8_t* string, uint16_t length) {
void on_statuschange(int friendnumber, USERSTATUS_KIND kind, uint8_t* string, uint16_t length) {
size_t i;
wprintw(prompt->window, "\n(statuschange) %d: %s!\n", friendnumber, string);
@ -201,7 +201,7 @@ static void load_data(char *path) {
Messenger_load(buf, len);
}
else {
else {
len = Messenger_size();
buf = malloc(len);
@ -289,7 +289,7 @@ int main(int argc, char* argv[]) {
for(i = 0; i < argc; i++) {
if (argv[i] == NULL){
break;
break;
} else if(argv[i][0] == '-') {
if(argv[i][1] == 'f') {
if(argv[i + 1] != NULL)