From 2b5fc780dcc7b55bdc804397430ee9caa8b23b64 Mon Sep 17 00:00:00 2001 From: Dafydd Francis Date: Tue, 13 Dec 2011 15:48:55 +0000 Subject: [PATCH 1/5] Added NECESSARY change --- modules/quotes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/quotes.js b/modules/quotes.js index 5c4854a..47b37e1 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -15,6 +15,10 @@ var quotes = function(dbot) { } } }, + + '~fishpuns': function (data, params) { + dbot.say(data.channel, 'fishpuns: SHUT THE FUCK UP MENTAL MARRIOT YOU PIECE OF SHIT'); + }, '~qsearch': function(data, params) { if(params[2] === undefined) { From dcf1ee8caeaae1933ae7deff42b9320622466087 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 13 Dec 2011 15:58:33 +0000 Subject: [PATCH 2/5] afal merge req 11 change --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index d5bf5ac..3a3083d 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -18,7 +18,7 @@ var quotes = function(dbot) { }, '~fishpuns': function (data, params) { - dbot.say(data.channel, 'fishpuns: SHUT THE FUCK UP MENTAL MARRIOT YOU PIECE OF SHIT'); + dbot.say(data.channel, 'fishpuns: SHUT THE FUCK UP YOU FRESHER PIECES OF SHIT'); }, '~qsearch': function(data, params) { From d5d68fcc51d0c2268319e6e8f0e9a7c514e8cd80 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 13 Dec 2011 16:03:21 +0000 Subject: [PATCH 3/5] only admin can run js --- modules/js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/js.js b/modules/js.js index 4634594..b59dfa4 100644 --- a/modules/js.js +++ b/modules/js.js @@ -4,7 +4,9 @@ var js = function(dbot) { var commands = { '~js': function(data, params) { var q = data.message.valMatch(/^~js (.*)/, 2); - dbot.say(data.channel, eval(q[1])); + if(data.user == dbot.admin) { + dbot.say(data.channel, eval(q[1])); + } } }; From 817915958bdba2451b712b0ba0ebee9c072c2cce Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 14 Dec 2011 19:15:32 +0000 Subject: [PATCH 4/5] distance 5 --- modules/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling.js b/modules/spelling.js index 40a33db..0d97e46 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -20,7 +20,7 @@ var spelling = function(dbot) { } } - if(winnerDistance < 3) { + if(winnerDistance < 5) { if(winner !== correction) { var fix = last[data.channel][data.user].replace(winner, correction); last[data.channel][data.user] = fix; From ea1437473654a737a772238405c044487b8e14c4 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 14 Dec 2011 20:57:15 +0000 Subject: [PATCH 5/5] 7 --- modules/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling.js b/modules/spelling.js index 0d97e46..b0c80d7 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -20,7 +20,7 @@ var spelling = function(dbot) { } } - if(winnerDistance < 5) { + if(winnerDistance < 7) { if(winner !== correction) { var fix = last[data.channel][data.user].replace(winner, correction); last[data.channel][data.user] = fix;