diff options
author | James Booth <boothj5@gmail.com> | 2014-01-05 21:55:32 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-05 21:55:32 +0000 |
commit | b8672d709af78870c5bcb66414b7541ab9cf0021 (patch) | |
tree | 29d0bd49b09ebe17af7febdd523fb83bc580c57c /src/xmpp | |
parent | 4bcd766d34c567d0e55a72d521c60d4d7b0c4fce (diff) | |
download | profani-tty-b8672d709af78870c5bcb66414b7541ab9cf0021.tar.gz |
Moved roster handlers to server_events
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/roster.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c index 52bda5ce..3da8c7d3 100644 --- a/src/xmpp/roster.c +++ b/src/xmpp/roster.c @@ -29,6 +29,7 @@ #include "log.h" #include "profanity.h" +#include "server_events.h" #include "tools/autocomplete.h" #include "xmpp/connection.h" #include "xmpp/roster.h" @@ -149,7 +150,7 @@ _group_add_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, { if (userdata != NULL) { GroupData *data = userdata; - prof_handle_group_add(data->name, data->group); + handle_group_add(data->name, data->group); free(data->name); free(data->group); free(userdata); @@ -196,7 +197,7 @@ _group_remove_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, { if (userdata != NULL) { GroupData *data = userdata; - prof_handle_group_remove(data->name, data->group); + handle_group_remove(data->name, data->group); free(data->name); free(data->group); free(userdata); @@ -240,7 +241,7 @@ _roster_handle_push(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, roster_remove(name, barejid); - prof_handle_roster_remove(barejid); + handle_roster_remove(barejid); // otherwise update local roster } else { |