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,
Freeze,
IsNowOper,
IsNowOperGlobal,
JoinedJuped,
Killed,
KilledRemote,
@ -38,6 +39,7 @@ enum class SnoteTag
NickCollision,
NickCollisionServices,
OperspyWhois,
OperspyWho,
PossibleFlooder,
PropagatedBanExpired,
RejectingKlined,

View File

@ -89,9 +89,15 @@ const SnotePattern static patterns[] = {
{SnoteTag::IsNowOper,
R"(^([^ ]+) \(([^ ]+)!([^ ]+)@([^ ]+)\) is now an operator$)"},
{SnoteTag::IsNowOperGlobal,
R"(^([^ ]+) \(([^ ]+)@([^ ]+)\) is now an operator$)"},
{SnoteTag::OperspyWhois,
R"(^OPERSPY ([^ ]+)!([^ ]+)@([^ ]+)\{([^ ]+)\} WHOIS ([^ ]+)!([^ ]+)@([^ ]+) ([^ ]+) $)"}, // trailing space intentional
{SnoteTag::OperspyWho,
R"(^OPERSPY ([^ ]+)!([^ ]+)@([^ ]+)\{([^ ]+)\} WHO ([^ ]+)$)"},
{SnoteTag::Freeze,
"^\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 ([^ ]+)$)"},
{SnoteTag::NickCollision,
R"(^Nick collision on ([^ ]+)\(([^ ]+) <- ([^ ]+)\)\(([^ ]+)\)$)"},
R"(^Nick collision on ([^ ]+)\(([^ ]+) <- ([^ ]+)\)\(([^ ]+) ([^ ]+)\)$)"},
{SnoteTag::TemporaryDline,
R"(^([^ ]+) added temporary ([^ ]+) min\. D-Line for \[([^ ]+)\] \[(.*)\]$)"},