Comparison

plugins/roster.lua @ 250:a5ac643a7fd6

added local verse var to all plugins
author mva <mva@mva.name>
date Fri, 02 Dec 2011 11:02:02 +0600
parent 217:60db4e738910
child 271:c9d8628a61cc
comparison
equal deleted inserted replaced
249:00891a675634 250:a5ac643a7fd6
1 local verse = require "verse";
2 local bare_jid = require "util.jid".bare;
3
1 local xmlns_roster = "jabber:iq:roster"; 4 local xmlns_roster = "jabber:iq:roster";
2 local xmlns_rosterver = "urn:xmpp:features:rosterver"; 5 local xmlns_rosterver = "urn:xmpp:features:rosterver";
3 local bare_jid = require "util.jid".bare;
4 local t_insert = table.insert; 6 local t_insert = table.insert;
5 7
6 function verse.plugins.roster(stream) 8 function verse.plugins.roster(stream)
7 local ver_supported = false; 9 local ver_supported = false;
8 local roster = { 10 local roster = {