Skip to content

Commit

Permalink
Fix issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Nov 3, 2021
1 parent 2f74ef5 commit cd4e146
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/public/js/cryptalk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/public/js/cryptalk.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/source/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit cd4e146

Please sign in to comment.