about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-02 00:59:32 +0000
committerJames Booth <boothj5@gmail.com>2014-02-02 00:59:32 +0000
commit9d957e5f937e415875a310585e5e1e2a538d0499 (patch)
treee9ae1206b88a75cbade4cf8035d4396d3cec7bc3 /src/xmpp
parent92b85bb7f121dd5ad852b9c0702e9fccc4ef6d18 (diff)
downloadprofani-tty-9d957e5f937e415875a310585e5e1e2a538d0499.tar.gz
Show message on /bookmark remove when bookmark does not exist
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/bookmark.c4
-rw-r--r--src/xmpp/xmpp.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/xmpp/bookmark.c b/src/xmpp/bookmark.c
index 11fe95c8..0ed58ecb 100644
--- a/src/xmpp/bookmark.c
+++ b/src/xmpp/bookmark.c
@@ -71,7 +71,7 @@ _bookmark_add(const char *jid, const char *nick, gboolean autojoin)
     return FALSE;
 }
 
-static void
+static gboolean
 _bookmark_remove(const char *jid, gboolean autojoin)
 {
     /* TODO: manage bookmark_list */
@@ -81,6 +81,8 @@ _bookmark_remove(const char *jid, gboolean autojoin)
         /* TODO: send request */
         autocomplete_remove(bookmark_ac, jid);
     }
+
+    return FALSE;
 }
 
 static const GList *
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h
index 31ddfccd..fdbcb500 100644
--- a/src/xmpp/xmpp.h
+++ b/src/xmpp/xmpp.h
@@ -133,7 +133,7 @@ Capabilities* (*caps_get)(const char * const caps_str);
 void (*caps_close)(void);
 
 gboolean (*bookmark_add)(const char *jid, const char *nick, gboolean autojoin);
-void (*bookmark_remove)(const char *jid, gboolean autojoin);
+gboolean (*bookmark_remove)(const char *jid, gboolean autojoin);
 const GList * (*bookmark_get_list)(void);
 char * (*bookmark_find)(char *search_str);
 void (*bookmark_autocomplete_reset)(void);