From: Mathieu Rene Date: Fri, 27 Feb 2009 16:38:19 +0000 (+0000) Subject: Whitespace can be a bitch X-Git-Tag: v1.0.4~1779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=557f7388f9bdf3c2620a80ce6b9bebc7cdf0d1fe;p=thirdparty%2Ffreeswitch.git Whitespace can be a bitch git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12327 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index 6858dc1448..73f8b4e4e5 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -1271,6 +1271,10 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj) acs->ack = 1; SWITCH_STANDARD_STREAM(stream); + + if (!strcasecmp(acs->api_cmd, "unload") || !strcasecmp(acs->arg, "mod_event_socket")) { + + } if ((status = switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream)) == SWITCH_STATUS_SUCCESS) { reply = stream.data; @@ -1351,7 +1355,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even *reply = '\0'; - if (switch_stristr("unload mod_event_socket", cmd)) { + if (switch_stristr("unload", cmd) && switch_stristr("mod_event_socket", cmd)) { cmd = cheat; }