![](http://www.gnu-darwin.org/hexley-gd-sm.png)
|
# File jabber4r/roster.rb, line 272
def delete(jid)
if jid.kind_of? String
jid = JID.new(jid)
jid.strip_resource
elsif jid.kind_of? JID
jid = JID.new(jid.node+"@"+jid.host)
else
return
end
item = @map.delete(jid.to_s)
notify_listeners(ITEM_DELETED, item) if item
item
end
|