mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
charybdis: Add a console command to GET the /client/r0/events resource.
This commit is contained in:
parent
380d988e97
commit
174d896198
1 changed files with 20 additions and 0 deletions
|
@ -241,6 +241,26 @@ try
|
|||
break;
|
||||
}
|
||||
|
||||
case hash("events"):
|
||||
{
|
||||
if(!moi)
|
||||
{
|
||||
std::cerr << "No current session" << std::endl;
|
||||
break;
|
||||
}
|
||||
|
||||
m::request request
|
||||
{
|
||||
"GET", "_matrix/client/r0/events"
|
||||
};
|
||||
|
||||
static char buf[1024];
|
||||
ircd::parse::buffer pb{buf};
|
||||
const auto doc((*moi)(pb, request));
|
||||
std::cout << doc << std::endl;
|
||||
break;
|
||||
}
|
||||
|
||||
case hash("connect"):
|
||||
{
|
||||
if(moi)
|
||||
|
|
Loading…
Reference in a new issue