Skip to content

Commit 7301a62

Browse files
committed
Working MUC password support.
1 parent d120989 commit 7301a62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xep/xep_0045.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public function get_join_room_pkt($room_full_jid, $options) {
7878
);
7979
$x = $pkt->c('x', NS_MUC);
8080
if (isset($options['no_history'])) {
81-
$x->c('history')->attrs(array('maxstanzas' => 0, 'seconds' => 0));
81+
$x->c('history')->attrs(array('maxstanzas' => 0, 'seconds' => 0))->up();
8282
}
8383
if (isset($options['password'])) {
84-
$x->c('password')->t($options['password']);
84+
$x->c('password')->t($options['password'])->up();
8585
}
8686
return $x;
8787
}

0 commit comments

Comments
 (0)