mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:43:01 +01:00
small bug fixes
This commit is contained in:
parent
cab4d43889
commit
202d162d2e
2
chat.c
2
chat.c
@ -314,7 +314,7 @@ void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd)
|
|||||||
snprintf(xx, sizeof(xx), "%02X", address[i] & 0xff);
|
snprintf(xx, sizeof(xx), "%02X", address[i] & 0xff);
|
||||||
strcat(id, xx);
|
strcat(id, xx);
|
||||||
}
|
}
|
||||||
wprintw(ctx->history, "Your ID: %s\n", id);
|
wprintw(ctx->history, "%s\n", id);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(ctx->line, "/close") == 0) {
|
else if (strcmp(ctx->line, "/close") == 0) {
|
||||||
|
1
main.c
1
main.c
@ -199,7 +199,6 @@ int main(int argc, char *argv[])
|
|||||||
char *DATA_FILE = NULL;
|
char *DATA_FILE = NULL;
|
||||||
int config_err = 0;
|
int config_err = 0;
|
||||||
|
|
||||||
/* This is broken */
|
|
||||||
int f_loadfromfile = 1;
|
int f_loadfromfile = 1;
|
||||||
int f_flag = 0;
|
int f_flag = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
2
prompt.c
2
prompt.c
@ -238,7 +238,7 @@ void cmd_myid(ToxWindow *self, Messenger *m, char **args)
|
|||||||
snprintf(xx, sizeof(xx), "%02X", address[i] & 0xff);
|
snprintf(xx, sizeof(xx), "%02X", address[i] & 0xff);
|
||||||
strcat(id, xx);
|
strcat(id, xx);
|
||||||
}
|
}
|
||||||
wprintw(self->window, "Your ID: %s\n", id);
|
wprintw(self->window, "%s\n", id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmd_nick(ToxWindow *self, Messenger *m, char **args)
|
void cmd_nick(ToxWindow *self, Messenger *m, char **args)
|
||||||
|
Loading…
Reference in New Issue
Block a user