From f7015bf92c3369e43ae22ee786bb2a6944f929d0 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 11 Feb 2015 17:32:09 +0100 Subject: [PATCH] Update xkcd.lua --- plugins/xkcd.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/xkcd.lua b/plugins/xkcd.lua index 6757c3b..d00037b 100644 --- a/plugins/xkcd.lua +++ b/plugins/xkcd.lua @@ -20,7 +20,7 @@ end function get_xkcd_random() local last = get_last_id() math.randomseed(os.time()) - i = math.random(1, data.num) + i = math.random(1, last) return get_xkcd(i) end @@ -51,4 +51,4 @@ return { "xkcd.com/(%d+)" }, run = run -} \ No newline at end of file +}