plugins/presence.lua

changeset 197
7e98cf2c1d8d
parent 191
e0664081654c
child 250
a5ac643a7fd6
--- 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();

mercurial