plugins.github: Fix argument order

Fri, 07 Aug 2015 22:01:41 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 07 Aug 2015 22:01:41 +0200
changeset 130
8c0dd9360228
parent 129
c9da10093c51
child 131
51fd36d01b27

plugins.github: Fix argument order

plugins/github.lua file | annotate | diff | comparison | revisions
--- a/plugins/github.lua	Fri Aug 07 21:47:50 2015 +0200
+++ b/plugins/github.lua	Fri Aug 07 22:01:41 2015 +0200
@@ -27,7 +27,7 @@
 		if not issue_id then return; end
 		local current_conf = conf[command.room and command.room.jid] or conf;
 		if not current_conf.user then return end
-		assert(http.request(get_issue_url(issue_id), ex, function (issue, code)
+		assert(http.request(get_issue_url(current_conf, issue_id), ex, function (issue, code)
 			if code > 400 then
 				return command:reply("HTTP Error "..code.." :(");
 			end

mercurial