Skip to content

Commit 725fd93

Browse files
committed
Fix keyword args in hook declarations
1 parent c402719 commit 725fd93

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

plugins/reddit_info.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def moremod(text, chan):
6868
return "All pages have been shown."
6969

7070

71-
@hook.command("subs", "moderates", singlethreaded=True)
71+
@hook.command("subs", "moderates", singlethread=True)
7272
def moderates(text, chan):
7373
"""This plugin prints the list of subreddits a user moderates listed in a reddit users profile. Private subreddits will not be listed."""
7474
#This command was written using concepts from FurCode http://github.com/FurCode.
@@ -97,7 +97,7 @@ def moderates(text, chan):
9797
return out
9898

9999

100-
@hook.command("karma", "ruser", singlethreaded=True)
100+
@hook.command("karma", "ruser", singlethread=True)
101101
def karma(text):
102102
"""karma <reddituser> will return the information about the specified reddit username"""
103103
user = text
@@ -128,7 +128,7 @@ def karma(text):
128128
return out
129129

130130

131-
@hook.command("cakeday", singlethreaded=True)
131+
@hook.command("cakeday", singlethread=True)
132132
def cake_day(text):
133133
"""cakeday <reddituser> will return the cakeday for the given reddit username."""
134134
user = text
@@ -161,7 +161,7 @@ def time_format(numdays):
161161
return age
162162

163163

164-
@hook.command("submods", "mods", "rmods", singlethreaded=True)
164+
@hook.command("submods", "mods", "rmods", singlethread=True)
165165
def submods(text, chan):
166166
"""submods <subreddit> prints the moderators of the specified subreddit."""
167167
global search_pages
@@ -193,7 +193,7 @@ def submods(text, chan):
193193
return out
194194

195195

196-
@hook.command("subinfo","subreddit", "sub", "rinfo", singlethreaded=True)
196+
@hook.command("subinfo","subreddit", "sub", "rinfo", singlethread=True)
197197
def subinfo(text):
198198
"""subinfo <subreddit> fetches information about the specified subreddit."""
199199
sub = text

0 commit comments

Comments
 (0)