Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Commit 26ab83f

Browse files
committed
modules/statistics: Remove hardcoded nick exception
1 parent 1d40e50 commit 26ab83f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config-example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
ENABLED_MODULES = [
4141
'Admins',
4242
'AutoUpdate',
43+
'BPController',
4344
'CTCP',
4445
'Echo',
4546
'FloodControl',
@@ -57,7 +58,6 @@
5758
'Remind',
5859
'Reply',
5960
'Spew',
60-
'Statistics',
6161
'Tell',
6262
'ThreadSearch',
6363
'Weather',

modules/statistics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def top10(channel):
1212
"""Displays the top ten chatters by line count."""
1313
summary = ''
1414
index = 1
15-
for (name, count) in dbQuery("SELECT name, COUNT(message) AS count FROM `lines` WHERE name<>'learningcode' GROUP BY name ORDER BY count DESC LIMIT 10"):
15+
for (name, count) in dbQuery("SELECT name, COUNT(message) AS count FROM `lines` GROUP BY name ORDER BY count DESC LIMIT 10"):
1616
summary += "%i. %s [%i] " % (index, name, count)
1717
index += 1
1818
sendMessage(channel, summary.strip())

0 commit comments

Comments
 (0)