summaryrefslogtreecommitdiff
path: root/testing/toxic/prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r--testing/toxic/prompt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c
index b1d6693f..c01ed710 100644
--- a/testing/toxic/prompt.c
+++ b/testing/toxic/prompt.c
@@ -15,7 +15,7 @@
15uint8_t pending_requests[MAX_STR_SIZE][CLIENT_ID_SIZE]; // XXX 15uint8_t pending_requests[MAX_STR_SIZE][CLIENT_ID_SIZE]; // XXX
16uint8_t num_requests=0; // XXX 16uint8_t num_requests=0; // XXX
17 17
18extern void on_friendadded(int friendnumber); 18extern void on_friendadded(Messenger *m, int friendnumber);
19static char prompt_buf[MAX_STR_SIZE] = {0}; 19static char prompt_buf[MAX_STR_SIZE] = {0};
20static int prompt_buf_pos = 0; 20static int prompt_buf_pos = 0;
21 21
@@ -87,7 +87,7 @@ void cmd_accept(ToxWindow *self, Messenger *m, char **args)
87 wprintw(self->window, "Failed to add friend.\n"); 87 wprintw(self->window, "Failed to add friend.\n");
88 else { 88 else {
89 wprintw(self->window, "Friend accepted as: %d.\n", num); 89 wprintw(self->window, "Friend accepted as: %d.\n", num);
90 on_friendadded(num); 90 on_friendadded(m, num);
91 } 91 }
92} 92}
93 93
@@ -146,7 +146,7 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args)
146 break; 146 break;
147 default: 147 default:
148 wprintw(self->window, "Friend added as %d.\n", num); 148 wprintw(self->window, "Friend added as %d.\n", num);
149 on_friendadded(num); 149 on_friendadded(m, num);
150 break; 150 break;
151 } 151 }
152} 152}