// Trim any whitespace off the name\r
channel_name = channel_name.trim();\r
\r
+ // If not a valid channel name, display a warning\r
+ if (!that.isChannelName(channel_name)) {\r
+ _kiwi.app.panels.server.addMsg('', channel_name + ' is not a valid channel name');\r
+ _kiwi.app.message.text(channel_name + ' is not a valid channel name', {timeout: 5000});\r
+ return;\r
+ }\r
+\r
// Check if we have the panel already. If not, create it\r
channel = that.panels.getByName(channel_name);\r
if (!channel) {\r