From 939797f5bed9f47e5c3fc082d929f4e9e50d6cb9 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 13 Oct 2015 05:36:49 +0000 Subject: [PATCH] ignore pms for stats --- modules/sstats/sstats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index 6232c21..b8505dd 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -75,6 +75,7 @@ var sstats = function(dbot) { }; this.listener = function(event) { + if(event.channel == event.user) return; // ignore PMs event.cStats.lines++; event.uStats.lines++;