Skip to content
Snippets Groups Projects
Commit 3d4f86f6 authored by Philippe Sultan's avatar Philippe Sultan
Browse files

Removed duplicate code

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bcde9133
Branches
Tags
No related merge requests found
...@@ -2726,14 +2726,6 @@ static int aji_create_client(char *label, struct ast_variable *var, int debug) ...@@ -2726,14 +2726,6 @@ static int aji_create_client(char *label, struct ast_variable *var, int debug)
} else { } else {
iks_filter_add_rule(client->f, aji_client_info_handler, client, IKS_RULE_NS, "http://jabber.org/protocol/disco#info", IKS_RULE_DONE); iks_filter_add_rule(client->f, aji_client_info_handler, client, IKS_RULE_NS, "http://jabber.org/protocol/disco#info", IKS_RULE_DONE);
} }
if (!strchr(client->user, '/') && !client->component) { /*client */
resource = NULL;
if (asprintf(&resource, "%s/asterisk", client->user) >= 0) {
client->jid = iks_id_new(client->stack, resource);
ast_free(resource);
}
} else
client->jid = iks_id_new(client->stack, client->user);
iks_set_log_hook(client->p, aji_log_hook); iks_set_log_hook(client->p, aji_log_hook);
ASTOBJ_UNLOCK(client); ASTOBJ_UNLOCK(client);
ASTOBJ_CONTAINER_LINK(&clients,client); ASTOBJ_CONTAINER_LINK(&clients,client);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment