Bump max message length (#782)
This commit is contained in:
parent
3620b07816
commit
027b27c1b0
3 changed files with 4 additions and 5 deletions
|
|
@ -164,8 +164,7 @@ ChatModule.prototype.handleChatMsg = function (user, data) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Limit to 240 characters
|
||||
data.msg = data.msg.substring(0, 240);
|
||||
data.msg = data.msg.substring(0, 320);
|
||||
|
||||
// Restrict new accounts/IPs from chatting and posting links
|
||||
if (this.restrictNewAccount(user, data)) {
|
||||
|
|
@ -251,7 +250,7 @@ ChatModule.prototype.handlePm = function (user, data) {
|
|||
}
|
||||
|
||||
|
||||
data.msg = data.msg.substring(0, 240);
|
||||
data.msg = data.msg.substring(0, 320);
|
||||
var to = null;
|
||||
for (var i = 0; i < this.channel.users.length; i++) {
|
||||
if (this.channel.users[i].getLowerName() === data.to) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue