summaryrefslogtreecommitdiff
path: root/testing/toxic/windows.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-15 19:59:43 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-15 19:59:43 -0400
commit36cb9b003d2f9e8162c39ffa3ab1afa3743b13a4 (patch)
tree3931e243d4a7a60a8c6f1d2d20094f8fdcc9d1c1 /testing/toxic/windows.c
parent0a00c5c29143b2613a512c5ff3f5f6c1e390f1ac (diff)
parent56bcbb8fc4d80260621414ced9784d701af57435 (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.c6
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
6extern char *DATA_FILE;
7extern int store_data(Messenger *m, char *path);
8
6/* Holds status of chat windows */ 9/* Holds status of chat windows */
7char WINDOW_STATUS[MAX_WINDOW_SLOTS]; 10char WINDOW_STATUS[MAX_WINDOW_SLOTS];
8 11
@@ -74,6 +77,9 @@ void on_statuschange(Messenger *m, int friendnumber, uint8_t *string, uint16_t l
74void on_friendadded(Messenger *m, int friendnumber) 77void 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