Added id handler for pings, disable ping on error type 'cancel'

This commit is contained in:
James Booth
2014-01-26 00:53:24 +00:00
parent 3d7e923254
commit 16de267906
3 changed files with 45 additions and 0 deletions

View File

@@ -461,3 +461,11 @@ handle_roster_add(const char * const barejid, const char * const name)
ui_roster_add(barejid, name);
ui_current_page_off();
}
void
handle_autoping_cancel(void)
{
prefs_set_autoping(0);
cons_show_error("Server ping not supported, autoping disabled.");
ui_current_page_off();
}