diff --git a/src/url_metadata.js b/src/url_metadata.js
index d877c5e..6ac2500 100644
--- a/src/url_metadata.js
+++ b/src/url_metadata.js
@@ -3,15 +3,17 @@ const bot = require('bbot');
const request = require('request');
bot.global.text(/(https?:\/\/.*)[, $]?/i, (b) => {
- request(b.match[1], (err, res, body) => {
- if (!err) {
- var re = /
([^<]*)<\/title>/gi;
- var match = re.exec(body);
- if (match && match[1]) {
- b.respond("[:link:](" + b.match[1] + ") _" + match[1] + "_");
+ if (!b.match[1].match(/coa\.crapaud-fou\.org/)) {
+ request(b.match[1], (err, res, body) => {
+ if (!err) {
+ var re = /([^<]*)<\/title>/gi;
+ var match = re.exec(body);
+ if (match && match[1]) {
+ b.respond("[:link:](" + b.match[1] + ") _" + match[1] + "_");
+ }
}
- }
- });
+ });
+ }
}, {
id: 'get-url-metadata'
});