Changeset 567
- Timestamp:
- 07/09/06 07:19:28 (4 years ago)
- Location:
- trunk/lib/DJabberd
- Files:
-
- 2 modified
-
Connection/ClientIn.pm (modified) (1 diff)
-
Presence.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/DJabberd/Connection/ClientIn.pm
r546 r567 126 126 if (my $jid = $self->bound_jid) { 127 127 $self->vhost->unregister_jid($jid, $self); 128 DJabberd::Presence->forget_last_presence($jid); 128 129 } 129 130 -
trunk/lib/DJabberd/Presence.pm
r498 r567 27 27 # used by DJabberd::PresenceChecker::Local. 28 28 my %last_bcast; # barejidstring -> { full_jid_string -> $cloned_pres_stanza } 29 30 sub forget_last_presence { 31 my ($class, $jid) = @_; 32 33 my $barestr = $jid->as_bare_string; 34 my $map = $last_bcast{$barestr} or return; 35 delete $map->{$jid->as_string}; 36 delete $last_bcast{$barestr} unless %$map; 37 } 29 38 30 39 # is this directed presence? must be to a JID, and must be available/unavailable, not probe/subscribe/etc.
