Add initial blocking of new users in chat
This commit is contained in:
parent
6245dc84da
commit
701d470494
4 changed files with 48 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue