extra snote pattern

This commit is contained in:
Eric Mertens 2023-11-29 13:54:34 -08:00
parent 7e4346a50e
commit 7999a0672b
3 changed files with 14 additions and 11 deletions

View File

@ -38,20 +38,19 @@ auto RegistrationThread::send_req() -> void
{
std::string request;
char const* const want[] = {
"extended-join",
"account-notify",
"draft/chathistory",
"batch",
"soju.im/no-implicit-names",
"chghost",
"setname",
"account-tag",
"solanum.chat/oper",
"solanum.chat/identify-msg",
"solanum.chat/realhost",
"server-time",
"batch",
"chghost",
"draft/chathistory",
"extended-join",
"invite-notify",
"extended-join"
"server-time",
"setname",
"soju.im/no-implicit-names",
"solanum.chat/identify-msg",
"solanum.chat/oper",
"solanum.chat/realhost",
};
for (auto cap : want)

View File

@ -71,6 +71,9 @@ SnotePattern const patterns[] =
{SnoteTag::Killed,
R"(^Received KILL message for ([^ ]+)!([^ ]+)@([^ ]+)\. From ([^ ]+) Path: ([^ ]+) \((.*)\)$)"},
{SnoteTag::TooManyGlobalConnections,
R"(^Too many global connections for ([^ ]+)\[([^ ]+)@([^ ]+)\] \[(.*)\]$)"},
};
auto setup_database() -> hs_database_t*

View File

@ -26,6 +26,7 @@ enum class SnoteTag
LoginAttempts,
PossibleFlooder,
Killed,
TooManyGlobalConnections,
};
class SnoteEvent : public Event