diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/actions/channel_actions.jsx | 6 | ||||
-rw-r--r-- | webapp/components/integrations/components/add_command.jsx | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx index f8bc61538..c02568043 100644 --- a/webapp/actions/channel_actions.jsx +++ b/webapp/actions/channel_actions.jsx @@ -24,7 +24,11 @@ export function goToChannel(channel) { } export function executeCommand(channelId, message, suggest, success, error) { - Client.executeCommand(channelId, message, suggest, success, error); + let msg = message; + + msg = msg.substring(0, msg.indexOf(' ')).toLowerCase() + msg.substring(msg.indexOf(' '), msg.length); + + Client.executeCommand(channelId, msg, suggest, success, error); } export function setChannelAsRead(channelIdParam) { diff --git a/webapp/components/integrations/components/add_command.jsx b/webapp/components/integrations/components/add_command.jsx index e72670e47..cf563875b 100644 --- a/webapp/components/integrations/components/add_command.jsx +++ b/webapp/components/integrations/components/add_command.jsx @@ -72,7 +72,7 @@ export default class AddCommand extends React.Component { const command = { display_name: this.state.displayName, description: this.state.description, - trigger: this.state.trigger.trim(), + trigger: this.state.trigger.trim().toLowerCase(), url: this.state.url.trim(), method: this.state.method, username: this.state.username, |