Fix issue #4
This commit is contained in:
parent
2f74ef5ca7
commit
cd4e146aa9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -57,9 +57,9 @@ export default function (mediator, settings, templates) {
|
|||
|
||||
// Make sure the nick meets the length requirements
|
||||
if (payload.length > settings.nick.maxLen) {
|
||||
return mediator('console:error', $.template(templates.messages.nick_to_long, { nick_maxLen: settings.nick.maxLen } ));
|
||||
return mediator.emit('console:error', $.template(templates.messages.nick_to_long, { nick_maxLen: settings.nick.maxLen } ));
|
||||
} else if (payload.length < settings.nick.minLen) {
|
||||
return mediator('console:error', $.template(templates.messages.nick_to_short, {nick_minLen: settings.nick.minLen } ));
|
||||
return mediator.emit('console:error', $.template(templates.messages.nick_to_short, {nick_minLen: settings.nick.minLen } ));
|
||||
}
|
||||
|
||||
// Set nick
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "cryptalk",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "cryptalk",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"license": "MIT",
|
||||
"os": [
|
||||
"darwin",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cryptalk",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"description": "Encrypted HTML5/Node.JS instant chat",
|
||||
"main": "server/server.js",
|
||||
"preferGlobal": true,
|
||||
|
|
Loading…
Reference in New Issue