Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
reality 2013-03-19 02:41:33 +00:00
commit 46a0c7965b
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
},
"admins": [ "batman" ],
"moderators": [ "whatever" ],
"moduleNames": [ "ignore", "admin", "command", "dice", "js", "kick", "quotes", "spelling", "youare", "stats", "users" ],
"moduleNames": [ "ignore", "admin", "command", "dice", "js", "kick", "quotes", "spelling", "youare", "stats", "users", "link" ],
"language": "en",
"debugMode": true,
"version": "Depressionbot IRC bot 0.4-dev - Lovingly crafted by The DepressionBot Foundation (a charity arm of the Official Aberystwyth Open Source International Development League)."

View File

@ -16,7 +16,7 @@ var link = function(dbot) {
body = body.replace(/(\r\n|\n\r|\n)/gm, " ");
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
if(title && title.length < 140) {
event.reply(ent.decode(title[1]));
event.reply(ent.decode(title[1]).trim());
}
}
});