- Timestamp:
- Jan 8, 2007, 9:40:27 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:
- d89b57f
- Parents:
- 9364a36
- git-author:
- Nelson Elhage <nelhage@mit.edu> (01/08/07 21:39:53)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (01/08/07 21:40:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/Net/XMPP/Roster.pm
ra75309a rb1f2fb0 269 269 my ($jid,%item) = @_; 270 270 271 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");271 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 272 272 273 273 $self->{JIDS}->{$jid} = \%item; … … 293 293 my (%item) = @_; 294 294 295 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");295 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 296 296 297 297 my $priority = $item{priority}; … … 347 347 my ($jid) = @_; 348 348 349 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");349 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 350 350 351 351 return unless exists($self->{JIDS}); … … 555 555 my $jid = shift; 556 556 557 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");557 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 558 558 559 559 return unless $self->exists($jid); … … 577 577 my $resource = shift; 578 578 579 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");579 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 580 580 581 581 if (defined($resource)) … … 603 603 my $key = shift; 604 604 605 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");605 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 606 606 607 607 return unless $self->exists($jid); … … 625 625 my $jid = shift; 626 626 627 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");627 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 628 628 629 629 if ($self->exists($jid)) … … 660 660 my $resource = shift; 661 661 662 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");662 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 663 663 664 664 if ($self->resourceExists($jid,$resource)) … … 701 701 my $jid = shift; 702 702 703 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");703 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 704 704 705 705 return unless $self->exists($jid); … … 724 724 my $resource = shift; 725 725 726 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");726 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 727 727 728 728 return unless $self->exists($jid); … … 745 745 my $key = shift; 746 746 747 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");747 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 748 748 749 749 return unless $self->resourceExists($jid,$resource); … … 767 767 my $jid = shift; 768 768 769 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");769 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 770 770 771 771 return () unless $self->exists($jid); … … 800 800 my $value = shift; 801 801 802 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");802 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 803 803 804 804 return unless defined($key); … … 824 824 my $value = shift; 825 825 826 $jid = $jid->GetJID() if $jid->isa("Net::XMPP::JID");826 $jid = $jid->GetJID() if ref($jid) && $jid->isa("Net::XMPP::JID"); 827 827 828 828 return unless defined($key);
Note: See TracChangeset
for help on using the changeset viewer.