This commit is contained in:
Hexagon 2021-11-03 21:40:15 +01:00
parent 2f74ef5ca7
commit cd4e146aa9
5 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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

4
package-lock.json generated
View File

@ -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",

View File

@ -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,