From f217289e9d88844f7e5c43d084941f4b57d97380 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Oct 2013 18:49:19 +0000 Subject: [PATCH] strip punctuation --- modules/sstats/sstats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index a6cbacb..9f1f984 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -77,6 +77,7 @@ var sstats = function(dbot) { event.cStats.lines++; event.uStats.lines++; + event.message = event.message.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()]/g, ""); var words = event.message.split(' '), wCount = words.length, capitals = 0,