summaryrefslogtreecommitdiffstats
path: root/webapp/actions/channel_actions.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/actions/channel_actions.jsx')
-rw-r--r--webapp/actions/channel_actions.jsx6
1 files changed, 5 insertions, 1 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) {