Add initial blocking of new users in chat

This commit is contained in:
calzoneman 2016-07-27 23:31:23 -07:00
parent 6245dc84da
commit 701d470494
4 changed files with 48 additions and 1 deletions

View file

@ -88,6 +88,22 @@ Callbacks = {
scrollChat();
},
spamFiltered: function(data) {
var message = "Spam Filtered.";
switch (data.reason) {
case "NEW_USER_CHAT":
message = "Your account is too new to chat in this channel. " +
"Please wait a while and try again.";
break;
case "NEW_USER_CHAT_LINK":
message = "Your account is too new to post links in this channel. " +
"Please wait a while and try again.";
break;
}
errDialog(message);
},
needPassword: function (wrongpw) {
var div = $("<div/>");
$("<strong/>").text("Channel Password")