Software /
code /
verse
Diff
plugins/presence.lua @ 197:7e98cf2c1d8d
plugins.*: Use verse.stanza() & co instead of require util.stanza
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 17 Mar 2011 18:33:52 +0100 |
parent | 191:e0664081654c |
child | 250:a5ac643a7fd6 |
line wrap: on
line diff
--- a/plugins/presence.lua Thu Mar 17 01:30:44 2011 +0100 +++ b/plugins/presence.lua Thu Mar 17 18:33:52 2011 +0100 @@ -1,4 +1,3 @@ -local st = require "util.stanza" function verse.plugins.presence(stream) stream.last_presence = nil; @@ -14,11 +13,8 @@ end end - -- Becase I didn't find util.stanza in the client code. - -- And, then the name fits better :) - -- // Zash function stream:set_status(opts) - local p = st.presence(); + local p = verse.presence(); if type(opts) == "table" then if opts.show then p:tag("show"):text(opts.show):up();