Software /
code /
verse
Comparison
plugins/presence.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 | 197:7e98cf2c1d8d |
child | 404:7c6a610c3ff5 |
comparison
equal
deleted
inserted
replaced
249:00891a675634 | 250:a5ac643a7fd6 |
---|---|
1 local verse = require "verse"; | |
2 | |
1 function verse.plugins.presence(stream) | 3 function verse.plugins.presence(stream) |
2 stream.last_presence = nil; | 4 stream.last_presence = nil; |
3 | 5 |
4 stream:hook("presence-out", function (presence) | 6 stream:hook("presence-out", function (presence) |
5 if not presence.attr.to then | 7 if not presence.attr.to then |