diff options
author | James Booth <boothj5@gmail.com> | 2013-01-31 00:01:38 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-31 00:01:38 +0000 |
commit | e6749d669db500942d9ad44df34077de34a36580 (patch) | |
tree | 06021b14cf6efbfeea0b8daec257f91e14d6e80f /src/xmpp_presence.c | |
parent | 9aa6a39cd6a263ed18aa91f178a318133e9ba27c (diff) | |
download | profani-tty-e6749d669db500942d9ad44df34077de34a36580.tar.gz |
Option to use last presence at login, or use a specific presence
Diffstat (limited to 'src/xmpp_presence.c')
-rw-r--r-- | src/xmpp_presence.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/xmpp_presence.c b/src/xmpp_presence.c index f2918812..125e1400 100644 --- a/src/xmpp_presence.c +++ b/src/xmpp_presence.c @@ -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) { |