From 1ab10dcb042d68c22dbdc3a9bbcef4ebae442eb7 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 18 Mar 2013 21:50:10 -0400 Subject: [PATCH 1/2] adding trim to link titles to remove annoying whitespace --- modules/link/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/link/link.js b/modules/link/link.js index 2d9c994..e07c178 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -16,7 +16,7 @@ var link = function(dbot) { body = body.replace(/(\r\n|\n\r|\n)/gm, " "); var title = body.valMatch(/(.*)<\/title>/, 2); if(title && title.length < 140) { - event.reply(ent.decode(title[1])); + event.reply(ent.decode(title[1]).trim()); } } }); From 23c20f09371c9da2141741a23ae7e1c46d609265 Mon Sep 17 00:00:00 2001 From: John Maguire <jmaguire2013@gmail.com> Date: Mon, 18 Mar 2013 21:53:08 -0400 Subject: [PATCH 2/2] adding link to default modules --- config.json.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json.sample b/config.json.sample index 1f1501e..be6de54 100644 --- a/config.json.sample +++ b/config.json.sample @@ -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)."