Lint fixes.
This commit is contained in:
@@ -114,6 +114,7 @@ hogfather.PublicChat.prototype.getID = function() {
|
|||||||
* @param {Cosmopolite.typeMessage} message
|
* @param {Cosmopolite.typeMessage} message
|
||||||
* @param {Array.<string>} owners
|
* @param {Array.<string>} owners
|
||||||
* @param {Array.<string>} writers
|
* @param {Array.<string>} writers
|
||||||
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
hogfather.PublicChat.prototype.checkMessage_ = function(
|
hogfather.PublicChat.prototype.checkMessage_ = function(
|
||||||
message, owners, writers) {
|
message, owners, writers) {
|
||||||
@@ -136,10 +137,10 @@ hogfather.PublicChat.prototype.checkMessage_ = function(
|
|||||||
default:
|
default:
|
||||||
console.log('Unknown message type:', message);
|
console.log('Unknown message type:', message);
|
||||||
return false;
|
return false;
|
||||||
};
|
}
|
||||||
|
|
||||||
if (acl.indexOf(message.sender) == -1) {
|
if (acl.indexOf(message.sender) == -1) {
|
||||||
console.log(this.loggingPrefix_(), "message from unauthorized source:",
|
console.log(this.loggingPrefix_(), 'message from unauthorized source:',
|
||||||
message, acl);
|
message, acl);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user