diff --git a/chat.c b/chat.c index bd21313..b870e9c 100644 --- a/chat.c +++ b/chat.c @@ -57,7 +57,6 @@ static void chat_onMessage(ToxWindow *self, int num, uint8_t *msg, uint16_t len) self->blink = true; beep(); - flash(); } static void chat_onNickChange(ToxWindow *self, int num, uint8_t *nick, uint16_t len) diff --git a/main.c b/main.c index 8de7624..27e3d85 100644 --- a/main.c +++ b/main.c @@ -22,6 +22,7 @@ extern int add_req(uint8_t *public_key); // XXX /* Holds status of chat windows */ char WINDOW_STATUS[MAX_WINDOW_SLOTS]; +#define TOXICVER "0.1.0" //Will be moved to a -D flag later static ToxWindow windows[MAX_WINDOW_SLOTS]; static ToxWindow* prompt; @@ -258,7 +259,7 @@ static void draw_bar() move(LINES - 1, 0); attron(COLOR_PAIR(4) | A_BOLD); - printw(" TOXIC 1.0 |"); + printw(" TOXIC " TOXICVER " |"); attroff(COLOR_PAIR(4) | A_BOLD); int i; diff --git a/prompt.c b/prompt.c index 0bdf69f..486273d 100644 --- a/prompt.c +++ b/prompt.c @@ -62,6 +62,16 @@ static void execute(ToxWindow *self, char *u_cmd) if (!isspace(cmd[cmd_end])) break; cmd[cmd_end + 1] = '\0'; + +/* What is this supposed to do? + if (cmd[0] == '/') { + wprintw(self->window,"Warning: Run your command without the /, this may not work\n"); + int i; + for (i = 1; i < strlen(cmd); i++) { //This doesn't work when it doesn't end with a space and another word + cmd[i - 1] = cmd[i]; //Still working on why + } + } +*/ if (!strcmp(cmd, "quit") || !strcmp(cmd, "exit") || !strcmp(cmd, "q")) { endwin();