default !wordiest to the current channel
This commit is contained in:
parent
a2ac26c072
commit
598a41da8c
1 changed files with 7 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue