mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 20:06:21 +00:00
Added roster list when using /roster with no args
This commit is contained in:
@@ -153,6 +153,19 @@ presence_sub_request_find(char * search_str)
|
||||
return autocomplete_complete(sub_requests_ac, search_str);
|
||||
}
|
||||
|
||||
gboolean
|
||||
presence_sub_request_exists(const char * const bare_jid)
|
||||
{
|
||||
GSList *requests = autocomplete_get_list(sub_requests_ac);
|
||||
while (requests != NULL) {
|
||||
if (strcmp(requests->data, bare_jid) == 0) {
|
||||
return TRUE;
|
||||
}
|
||||
requests = g_slist_next(requests);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
presence_reset_sub_request_search(void)
|
||||
{
|
||||
|
||||
@@ -113,6 +113,7 @@ void presence_change_room_nick(const char * const room, const char * const nick)
|
||||
void presence_leave_chat_room(const char * const room_jid);
|
||||
void presence_update(resource_presence_t status, const char * const msg,
|
||||
int idle);
|
||||
gboolean presence_sub_request_exists(const char * const bare_jid);
|
||||
|
||||
// iq functions
|
||||
void iq_send_software_version(const char * const fulljid);
|
||||
|
||||
Reference in New Issue
Block a user