extra snote pattern
This commit is contained in:
parent
7e4346a50e
commit
7999a0672b
|
@ -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)
|
||||||
|
|
|
@ -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*
|
||||||
|
|
|
@ -26,6 +26,7 @@ enum class SnoteTag
|
||||||
LoginAttempts,
|
LoginAttempts,
|
||||||
PossibleFlooder,
|
PossibleFlooder,
|
||||||
Killed,
|
Killed,
|
||||||
|
TooManyGlobalConnections,
|
||||||
};
|
};
|
||||||
|
|
||||||
class SnoteEvent : public Event
|
class SnoteEvent : public Event
|
||||||
|
|
Loading…
Reference in New Issue
Block a user