diff options
| author | 2019-05-04 23:28:51 +0100 | |
|---|---|---|
| committer | 2019-05-04 23:28:51 +0100 | |
| commit | f715e46155241041165f6365fd589d77ca77fe30 (patch) | |
| tree | 1db02c2e954b53c394ea9a2e4f5853287c4114f8 /modules/ducks.py | |
| parent | Only handle 324 when we're actually in the channel (diff) | |
Stop using prevent_highlight. it ruins terminals on OS X
Diffstat (limited to 'modules/ducks.py')
| -rw-r--r-- | modules/ducks.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/ducks.py b/modules/ducks.py index d252a4a9..8777e4a4 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -114,10 +114,8 @@ class Module(ModuleManager.BaseModule): user_stats[nickname] = 0 user_stats[nickname] += value - nick_func = lambda nickname: utils.prevent_highlight( - server.get_user(nickname).nickname) - - top_10 = utils.top_10(user_stats, convert_key=nick_func) + top_10 = utils.top_10(user_stats, + convert_key=lambda nickname: server.get_user(nickname).nickname) return "Top duck %s%s: %s" % (description, channel_query_str, ", ".join(top_10)) |
