Software /
code /
verse
Changeset
209:48a404e083c4
plugins.roster: Don't signal roster events if there was no such item
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 24 May 2011 20:22:02 +0200 |
parents | 208:bd4cdc02d48a |
children | 210:118da85cb3ce |
files | plugins/roster.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/roster.lua Wed Apr 20 01:32:25 2011 +0200 +++ b/plugins/roster.lua Tue May 24 20:22:02 2011 +0200 @@ -123,7 +123,9 @@ add_item(item) target = roster.items[jid]; end - stream:event("roster/item-"..event, target); + if target then + stream:event("roster/item-"..event, target); + end -- TODO else return error? Events? end stream:send(verse.reply(stanza))