- Timestamp:
- Apr 12, 2007, 6:05:37 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:
- 80e54a7
- Parents:
- c2c5c77
- Location:
- perl/modules/Jabber/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r2cedb7a r7f33c18 363 363 $conn->getRosterFromJID($jidStr)->fetch(); 364 364 $client->PresenceSend( priority => 1 ); 365 queue_admin_msg("Connected to jabber as $jidStr"); 365 my $fullJid = $client->{SESSION}->{FULLJID}; 366 $conn->renameConnection($jidStr, $fullJid); 367 queue_admin_msg("Connected to jabber as $fullJid"); 366 368 } 367 369 } 368 369 370 } 370 371 delete $vars{jlogin_jid}; … … 374 375 delete $vars{jlogin_connhash}; 375 376 delete $vars{jlogin_authhash}; 377 376 378 return ""; 377 379 } -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber/ConnectionManager.pm
r2cedb7a r7f33c18 41 41 delete $self->{$jidStr}; 42 42 43 return 1; 44 } 45 46 sub renameConnection { 47 my $self = shift; 48 my $oldJidStr = shift; 49 my $newJidStr = shift; 50 return 0 unless exists $self->{$oldJidStr}; 51 return 0 if $oldJidStr eq $newJidStr; 52 53 $self->{$newJidStr} = $self->{$oldJidStr}; 54 delete $self->{$oldJidStr}; 43 55 return 1; 44 56 } -
perl/modules/Jabber/lib/Net/XMPP/Protocol.pm
rc2bed55 r7f33c18 1978 1978 { 1979 1979 $self->{DEBUG}->Log1("AuthSASL: Binding to resource"); 1980 $self->BindResource($args{resource}); 1980 my $jid = $self->BindResource($args{resource}); 1981 $self->{SESSION}->{FULLJID} = $jid; 1981 1982 } 1982 1983 … … 2019 2020 2020 2021 my $result = $self->SendAndReceiveWithID($iq); 2022 return $result->GetChild(&ConstXMLNS("xmpp-bind"))->GetJID();; 2021 2023 } 2022 2024
Note: See TracChangeset
for help on using the changeset viewer.