- Timestamp:
- Jan 16, 2007, 12:39:05 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:
- 855dc8d
- Parents:
- bc9436f
- git-author:
- Nelson Elhage <nelhage@mit.edu> (01/16/07 12:38:58)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (01/16/07 12:39:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/jabber.pl
rf3c1aba re1b197e8 74 74 $muc->Leave(); 75 75 76 $self->{_BARNOWL_MUCS} = grep {$_ != $muc} $self->MUCs;76 $self->{_BARNOWL_MUCS} = [grep {$_->BaseJID ne $muc->BaseJID} $self->MUCs]; 77 77 } 78 78 … … 690 690 my ( $jid, $muc, @args ) = @_; 691 691 692 $muc = shift @args if scalar @args; 693 die("Usage: jmuc presence MUC") unless $muc; 694 692 695 my $m = $conn->getConnectionFromJidStr($jid)->FindMUC(jid => $muc); 693 696 die("No such muc: $muc") unless $m; … … 695 698 my @jids = $m->Presence(); 696 699 BarnOwl::popless_ztext("JIDs present in " . $m->BaseJID . "\n\t" . 697 join("\n\t", map {$_->GetResource}@jids) );700 join("\n\t", map {$_->GetResource}@jids) . "\n"); 698 701 } 699 702
Note: See TracChangeset
for help on using the changeset viewer.