Option to use last presence at login, or use a specific presence

This commit is contained in:
James Booth
2013-01-31 00:01:38 +00:00
parent 9aa6a39cd6
commit e6749d669d
8 changed files with 106 additions and 47 deletions

View File

@@ -56,23 +56,6 @@ presence_add_handlers(void)
HANDLE(NULL, NULL, _presence_handler);
}
gboolean
presence_valid_string(const char * const str)
{
if (str == NULL) {
return FALSE;
} else if ((strcmp(str, "online") == 0) ||
(strcmp(str, "chat") == 0) ||
(strcmp(str, "away") == 0) ||
(strcmp(str, "xa") == 0) ||
(strcmp(str, "dnd") == 0)) {
return TRUE;
} else {
return FALSE;
}
}
void
presence_subscription(const char * const jid, const jabber_subscr_t action)
{