diff options
| author | 2019-12-19 14:33:07 +0000 | |
|---|---|---|
| committer | 2019-12-19 14:33:07 +0000 | |
| commit | 598a41da8c4da2c2a83d230d0f62f42aac157dee (patch) | |
| tree | 588e14d00c79caa2d5045c171b3881aa0941c7e1 | |
| parent | use +=timedelta(minutes=1) when calculating next minute (diff) | |
| signature | ||
default !wordiest to the current channel
| -rw-r--r-- | modules/words.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/words.py b/modules/words.py index c76fb3dc..85e9ad99 100644 --- a/modules/words.py +++ b/modules/words.py @@ -137,8 +137,13 @@ class Module(ModuleManager.BaseModule): """ channel_query = None word_prefix = "" - if event["args_split"]: - channel_query = event["args_split"][0].lower() + if event["args"]: + if not event["args_split"][0] == "*": + channel_query = event["args_split"][0].lower() + elif event["is_channel"]: + channel_query = event["target"].name + + if channel_query: word_prefix = " (%s)" % channel_query words = event["server"].find_all_user_channel_settings("words") |
