diff options
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r-- | testing/toxic/chat.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index 1b5e743d..e4da9484 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -13,6 +13,8 @@ | |||
13 | #include "../../core/network.h" | 13 | #include "../../core/network.h" |
14 | 14 | ||
15 | #include "windows.h" | 15 | #include "windows.h" |
16 | #include "friendlist.h" | ||
17 | #include "chat.h" | ||
16 | 18 | ||
17 | #define CURS_Y_OFFSET 3 | 19 | #define CURS_Y_OFFSET 3 |
18 | 20 | ||
@@ -24,10 +26,6 @@ typedef struct { | |||
24 | WINDOW* linewin; | 26 | WINDOW* linewin; |
25 | } ChatContext; | 27 | } ChatContext; |
26 | 28 | ||
27 | extern int active_window; | ||
28 | |||
29 | extern void del_window(ToxWindow *w, int f_num); | ||
30 | extern void fix_name(uint8_t *name); | ||
31 | void print_help(ChatContext *self); | 29 | void print_help(ChatContext *self); |
32 | void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd); | 30 | void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd); |
33 | 31 | ||
@@ -320,7 +318,6 @@ void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd) | |||
320 | } | 318 | } |
321 | 319 | ||
322 | else if (strcmp(ctx->line, "/close") == 0) { | 320 | else if (strcmp(ctx->line, "/close") == 0) { |
323 | active_window = 0; // Go to prompt screen | ||
324 | int f_num = ctx->friendnum; | 321 | int f_num = ctx->friendnum; |
325 | delwin(ctx->linewin); | 322 | delwin(ctx->linewin); |
326 | del_window(self, f_num); | 323 | del_window(self, f_num); |