]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Remove redundant syntax check in dl_login
authorChristopher Rienzo <chris@rienzo.com>
Sat, 17 Nov 2012 22:32:12 +0000 (17:32 -0500)
committerChristopher Rienzo <chris@rienzo.com>
Sat, 17 Nov 2012 22:32:12 +0000 (17:32 -0500)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index b0ed56b4c9a21380b1a36724e0efbefb3e144ffa..24a0e497a90fe9ed5ff73cda5d5e1b3d2a4d4f17 100644 (file)
@@ -3112,12 +3112,6 @@ SWITCH_STANDARD_API(dl_login)
 
        argc = switch_separate_string(myarg, ';', argv, (sizeof(argv) / sizeof(argv[0])));
 
-       if (zstr(cmd)) {
-               stream->write_function(stream, "USAGE: %s\n", LOGIN_SYNTAX);
-               status = SWITCH_STATUS_SUCCESS;
-               goto done;
-       }
-
        if (argv[0] && !strncasecmp(argv[0], "profile=", 8)) {
                char *profile_name = argv[0] + 8;
                profile = switch_core_hash_find(globals.profile_hash, profile_name);