Skip to content

Commit 2f14e85

Browse files
committed
Fix index for parameters
1 parent c929e98 commit 2f14e85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/reddit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def reddit(text, bot, reply):
7777
# find the requested post number (if any)
7878
if parts:
7979
try:
80-
id_num = int(parts[1]) - 1
80+
id_num = int(parts[0]) - 1
8181
except ValueError:
8282
return "Invalid post number."
8383
else:

0 commit comments

Comments
 (0)