diff --git a/public/language/en_GB/error.json b/public/language/en_GB/error.json index 8bb83071fc..a8d4c042b5 100644 --- a/public/language/en_GB/error.json +++ b/public/language/en_GB/error.json @@ -23,7 +23,7 @@ "username-taken": "Username taken", "email-taken": "Email taken", "email-not-confirmed": "Your email has not been confirmed yet, please click here to confirm your email.", - "email-not-confirmed-chat": "You are unable to chat until your email is confirmed", + "email-not-confirmed-chat": "You are unable to chat until your email is confirmed, please click here to confirm your email.", "no-email-to-confirm": "This forum requires email confirmation, please click here to enter an email", "email-confirm-failed": "We could not confirm your email, please try again later.", diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 020b0915ef..0b0f80ff8c 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -206,6 +206,9 @@ define('forum/chats', ['string', 'sounds', 'forum/infinitescroll'], function(S, message:msg }, function(err) { if (err) { + if (err.message === '[[error:email-not-confirmed-chat]]') { + return showEmailConfirmAlert(err); + } return app.alertError(err.message); }