Added status handler code to profanity module

This commit is contained in:
James Booth
2012-10-02 00:03:53 +01:00
parent 310d712d42
commit 02224ea7bb
3 changed files with 26 additions and 12 deletions

View File

@@ -227,6 +227,26 @@ prof_handle_failed_login(void)
log_info("disconnected");
}
void
prof_handle_contact_online(char *contact, char *show, char *status)
{
gboolean result = contact_list_add(contact, show, status);
if (result) {
win_contact_online(contact, show, status);
}
win_page_off();
}
void
prof_handle_contact_offline(char *contact, char *show, char *status)
{
gboolean result = contact_list_remove(contact);
if (result) {
win_contact_offline(contact, show, status);
}
win_page_off();
}
static void
_create_config_directory()
{