diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-15 19:59:43 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-15 19:59:43 -0400 |
commit | 36cb9b003d2f9e8162c39ffa3ab1afa3743b13a4 (patch) | |
tree | 3931e243d4a7a60a8c6f1d2d20094f8fdcc9d1c1 /testing/toxic/windows.c | |
parent | 0a00c5c29143b2613a512c5ff3f5f6c1e390f1ac (diff) | |
parent | 56bcbb8fc4d80260621414ced9784d701af57435 (diff) |
Merge branch 'master' of https://github.com/rose-m/ProjectTox-Core into rose-m-master
Diffstat (limited to 'testing/toxic/windows.c')
-rw-r--r-- | testing/toxic/windows.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c index 6de50741..15caddf7 100644 --- a/testing/toxic/windows.c +++ b/testing/toxic/windows.c | |||
@@ -3,6 +3,9 @@ | |||
3 | #include "dhtstatus.h" | 3 | #include "dhtstatus.h" |
4 | #include "windows.h" | 4 | #include "windows.h" |
5 | 5 | ||
6 | extern char *DATA_FILE; | ||
7 | extern int store_data(Messenger *m, char *path); | ||
8 | |||
6 | /* Holds status of chat windows */ | 9 | /* Holds status of chat windows */ |
7 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; | 10 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; |
8 | 11 | ||
@@ -74,6 +77,9 @@ void on_statuschange(Messenger *m, int friendnumber, uint8_t *string, uint16_t l | |||
74 | void on_friendadded(Messenger *m, int friendnumber) | 77 | void on_friendadded(Messenger *m, int friendnumber) |
75 | { | 78 | { |
76 | friendlist_onFriendAdded(m, friendnumber); | 79 | friendlist_onFriendAdded(m, friendnumber); |
80 | if (store_data(m, DATA_FILE) != 0) { | ||
81 | wprintw(prompt->window, "\nCould not store Messenger data\n"); | ||
82 | } | ||
77 | } | 83 | } |
78 | /* CALLBACKS END */ | 84 | /* CALLBACKS END */ |
79 | 85 | ||