diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/presence/publisher.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/presence/publisher.c b/modules/presence/publisher.c index b00096e..45780bb 100644 --- a/modules/presence/publisher.c +++ b/modules/presence/publisher.c @@ -250,19 +250,19 @@ static void pub_ua_event_handler(struct ua *ua, const char *prm, void *arg ) { - (void)call; - (void)prm; - (void)arg; - - if (account_pubint(ua_account(ua)) == 0) - return; - - if (ev == UA_EVENT_REGISTER_OK) { - if (ua_presence_status(ua) == PRESENCE_UNKNOWN) { - ua_presence_status_set(ua, PRESENCE_OPEN); - publisher_update_status(ua); - } - } + (void)call; + (void)prm; + (void)arg; + + if (account_pubint(ua_account(ua)) == 0) + return; + + if (ev == UA_EVENT_REGISTER_OK) { + if (ua_presence_status(ua) == PRESENCE_UNKNOWN) { + ua_presence_status_set(ua, PRESENCE_OPEN); + publisher_update_status(ua); + } + } } |