operspy who

This commit is contained in:
Eric Mertens 2025-01-30 12:55:40 -08:00
parent 0e708e72f8
commit 206b4c9d89
2 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,7 @@ enum class SnoteTag
FailedChallengeTls, FailedChallengeTls,
Freeze, Freeze,
IsNowOper, IsNowOper,
IsNowOperGlobal,
JoinedJuped, JoinedJuped,
Killed, Killed,
KilledRemote, KilledRemote,
@ -38,6 +39,7 @@ enum class SnoteTag
NickCollision, NickCollision,
NickCollisionServices, NickCollisionServices,
OperspyWhois, OperspyWhois,
OperspyWho,
PossibleFlooder, PossibleFlooder,
PropagatedBanExpired, PropagatedBanExpired,
RejectingKlined, RejectingKlined,

View File

@ -89,9 +89,15 @@ const SnotePattern static patterns[] = {
{SnoteTag::IsNowOper, {SnoteTag::IsNowOper,
R"(^([^ ]+) \(([^ ]+)!([^ ]+)@([^ ]+)\) is now an operator$)"}, R"(^([^ ]+) \(([^ ]+)!([^ ]+)@([^ ]+)\) is now an operator$)"},
{SnoteTag::IsNowOperGlobal,
R"(^([^ ]+) \(([^ ]+)@([^ ]+)\) is now an operator$)"},
{SnoteTag::OperspyWhois, {SnoteTag::OperspyWhois,
R"(^OPERSPY ([^ ]+)!([^ ]+)@([^ ]+)\{([^ ]+)\} WHOIS ([^ ]+)!([^ ]+)@([^ ]+) ([^ ]+) $)"}, // trailing space intentional R"(^OPERSPY ([^ ]+)!([^ ]+)@([^ ]+)\{([^ ]+)\} WHOIS ([^ ]+)!([^ ]+)@([^ ]+) ([^ ]+) $)"}, // trailing space intentional
{SnoteTag::OperspyWho,
R"(^OPERSPY ([^ ]+)!([^ ]+)@([^ ]+)\{([^ ]+)\} WHO ([^ ]+)$)"},
{SnoteTag::Freeze, {SnoteTag::Freeze,
"^\x02([^ ]+)\x02 froze the account \x02([^ ]+)\x02 \\((.*)\\)\\.$"}, "^\x02([^ ]+)\x02 froze the account \x02([^ ]+)\x02 \\((.*)\\)\\.$"},
@ -108,7 +114,7 @@ const SnotePattern static patterns[] = {
R"(^Nick collision due to services forced nick change on ([^ ]+)$)"}, R"(^Nick collision due to services forced nick change on ([^ ]+)$)"},
{SnoteTag::NickCollision, {SnoteTag::NickCollision,
R"(^Nick collision on ([^ ]+)\(([^ ]+) <- ([^ ]+)\)\(([^ ]+)\)$)"}, R"(^Nick collision on ([^ ]+)\(([^ ]+) <- ([^ ]+)\)\(([^ ]+) ([^ ]+)\)$)"},
{SnoteTag::TemporaryDline, {SnoteTag::TemporaryDline,
R"(^([^ ]+) added temporary ([^ ]+) min\. D-Line for \[([^ ]+)\] \[(.*)\]$)"}, R"(^([^ ]+) added temporary ([^ ]+) min\. D-Line for \[([^ ]+)\] \[(.*)\]$)"},