plugins.jingle_ibb: new_ibb() doesn't need to be global

Mon, 05 Mar 2012 20:51:00 +0100

author
Kim Alvefur <zash@zash.se>
date
Mon, 05 Mar 2012 20:51:00 +0100
changeset 284
c78d1780f1d2
parent 283
39ce7535887c
child 285
99737531734c

plugins.jingle_ibb: new_ibb() doesn't need to be global

plugins/jingle_ibb.lua file | annotate | diff | comparison | revisions
--- a/plugins/jingle_ibb.lua	Mon Mar 05 20:18:54 2012 +0100
+++ b/plugins/jingle_ibb.lua	Mon Mar 05 20:51:00 2012 +0100
@@ -11,7 +11,7 @@
 local ibb_conn = {};
 local ibb_conn_mt = { __index = ibb_conn };
 
-function new_ibb(stream)
+local function new_ibb(stream)
 	local conn = setmetatable({ stream = stream }, ibb_conn_mt)
 	conn = verse.eventable(conn);
 	return conn;

mercurial