disable controls until there is security

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3789 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2006-12-21 22:01:20 +00:00
parent 25131f4124
commit 431ae09c25
1 changed files with 10 additions and 5 deletions

View File

@ -3818,12 +3818,17 @@ static switch_status_t chat_send(char *proto, char *from, char *to, char *subjec
if (strcasecmp(argv[0], "list") == 0) {
conference_list_pretty(conference, &stream);
/* provide help */
} else if (strcasecmp(argv[0], "help") == 0 || strcasecmp(argv[0], "commands") == 0) {
stream.write_function(&stream, "%s\n", conf_api_interface.syntax);
/* find a normal command */
} else {
conf_api_dispatch(conference, &stream, argc, argv, (const char *)body, 0);
}
#if 0
else {
if (strcasecmp(argv[0], "help") == 0 || strcasecmp(argv[0], "commands") == 0) {
stream.write_function(&stream, "%s\n", conf_api_interface.syntax);
/* find a normal command */
} else {
conf_api_dispatch(conference, &stream, argc, argv, (const char *)body, 0);
}
}
#endif
} else {
stream.write_function(&stream, "No parameters specified.\nTry 'help'\n");
}