Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Brown committed Aug 29, 2017
2 parents 250a7d5 + c53d906 commit 2fba7ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CiscoSparkbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function Sparkbot(configuration) {
console.log('limit to org', controller.config.limit_to_org, message.original_message.orgId);
if (!message.original_message.orgId || message.original_message.orgId != controller.config.limit_to_org) {
// this message is from a user outside of the proscribed org
console.log('WARNING: this message is from a user outside of the proscribed org', controller.config.limit_to_org);
return false;
}
}
Expand All @@ -157,6 +158,7 @@ function Sparkbot(configuration) {
}

if (!allowed) {
console.log('WARNING: this message came from a domain that is outside of the allowed list', controller.config.limit_to_domain);
// this message came from a domain that is outside of the allowed list.
return false;
}
Expand Down

0 comments on commit 2fba7ac

Please sign in to comment.