Comparison

plugins/jingle_ibb.lua @ 284:c78d1780f1d2

plugins.jingle_ibb: new_ibb() doesn't need to be global
author Kim Alvefur <zash@zash.se>
date Mon, 05 Mar 2012 20:51:00 +0100
parent 250:a5ac643a7fd6
child 428:bde804b01f28
comparison
equal deleted inserted replaced
283:39ce7535887c 284:c78d1780f1d2
9 local t_concat = table.concat 9 local t_concat = table.concat
10 10
11 local ibb_conn = {}; 11 local ibb_conn = {};
12 local ibb_conn_mt = { __index = ibb_conn }; 12 local ibb_conn_mt = { __index = ibb_conn };
13 13
14 function new_ibb(stream) 14 local function new_ibb(stream)
15 local conn = setmetatable({ stream = stream }, ibb_conn_mt) 15 local conn = setmetatable({ stream = stream }, ibb_conn_mt)
16 conn = verse.eventable(conn); 16 conn = verse.eventable(conn);
17 return conn; 17 return conn;
18 end 18 end
19 19