Software /
code /
clix
Changeset
61:7d62bff46601
clix.roster: Add command for unsubscribing and canceling subscription
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 17 May 2011 20:50:46 +0200 |
parents | 60:1537dabc5df8 |
children | 62:f455dad33efd |
files | clix/roster.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/roster.lua Thu May 05 01:30:06 2011 +0200 +++ b/clix/roster.lua Tue May 17 20:50:46 2011 +0200 @@ -33,7 +33,9 @@ quit = function(param) conn:close(); end; add = function(param) conn.roster:add_contact(param) end; sub = function(param) conn:send(verse.presence{to=param, type="subscribe"}); end; + unsub = function(param) conn:send(verse.presence{to=param, type="unsubscribe"}); end; auth = function(param) conn:send(verse.presence{to=param, type="subscribed"}); end; + unauth = function(param) conn:send(verse.presence{to=param, type="unsubscribed"}); end; del = function(param) conn.roster:delete_contact(param) end; setnick = function(param) local jid, nick = param:match("^(%S+)%s+(%S+)");