0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

charybdis: Add a console command to GET the /client/r0/events resource.

This commit is contained in:
Jason Volk 2017-08-23 14:32:28 -06:00
parent 380d988e97
commit 174d896198

View file

@ -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)