- Timestamp:
- Jan 21, 2007, 6:29:01 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 585bdc3
- Parents:
- 52891b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/Net/XMPP/Roster.pm
rd89b57f r72a53e9 270 270 271 271 $jid = $jid->GetJID() if UNIVERSAL::isa($jid,"Net::XMPP::JID"); 272 273 $self->{JIDS}->{$jid} = \%item; 274 272 if (exists $self->{JIDS}->{$jid}) 273 { 274 foreach my $key (keys %item) 275 { 276 $self->{JIDS}->{$jid}->{$key} = $item{$key}; 277 } 278 } 279 else 280 { 281 $self->{JIDS}->{$jid} = \%item; 282 283 } 275 284 foreach my $group (@{$item{groups}}) 276 285 { 277 286 $self->{GROUPS}->{$group}->{$jid} = 1; 278 287 } 279 288 } … … 440 449 foreach my $jid (keys(%{$roster})) 441 450 { 442 $self->remove($jid);443 444 451 if ($roster->{$jid}->{subscription} ne "remove") 445 452 { 446 453 $self->add($jid, %{$roster->{$jid}}); 454 } 455 else 456 { 457 $self->remove($jid); 447 458 } 448 459 }
Note: See TracChangeset
for help on using the changeset viewer.