File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -12342,19 +12342,34 @@ console_cmd__room__msghtml(opt &out, const string_view &line)
12342
12342
bool
12343
12343
console_cmd__room__join (opt &out, const string_view &line)
12344
12344
{
12345
+ const params param{line, " " ,
12346
+ {
12347
+ " room_id" , " user_id" , " remote" , " event_id"
12348
+ }};
12349
+
12345
12350
const string_view room_id_or_alias
12346
12351
{
12347
- token (line, ' ' , 0 )
12352
+ param. at ( " room_id " )
12348
12353
};
12349
12354
12350
- const m::user::id & user_id
12355
+ const m::user::id user_id
12351
12356
{
12352
- token (line, ' ' , 1 )
12357
+ param. at ( " user_id " )
12353
12358
};
12354
12359
12355
- const string_view &event_id
12360
+ const string_view event_id
12361
+ {
12362
+ param[" event_id" ]
12363
+ };
12364
+
12365
+ const string_view remote
12366
+ {
12367
+ param[" remote" ]
12368
+ };
12369
+
12370
+ const vector_view<const string_view> remotes
12356
12371
{
12357
- token (line, ' ' , 2 , {})
12372
+ &remote, 1
12358
12373
};
12359
12374
12360
12375
switch (m::sigil (room_id_or_alias))
@@ -12368,7 +12383,7 @@ console_cmd__room__join(opt &out, const string_view &line)
12368
12383
12369
12384
const auto join_event
12370
12385
{
12371
- m::join (room, user_id)
12386
+ m::join (room, user_id, remotes )
12372
12387
};
12373
12388
12374
12389
out << join_event << std::endl;
You can’t perform that action at this time.
0 commit comments