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; std::string request;
char const* const want[] = { char const* const want[] = {
"extended-join",
"account-notify", "account-notify",
"draft/chathistory",
"batch",
"soju.im/no-implicit-names",
"chghost",
"setname",
"account-tag", "account-tag",
"solanum.chat/oper", "batch",
"solanum.chat/identify-msg", "chghost",
"solanum.chat/realhost", "draft/chathistory",
"server-time", "extended-join",
"invite-notify", "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) for (auto cap : want)

View File

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

View File

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