From 15c48ab1dc8db59604c9e68f7486db24bee10250 Mon Sep 17 00:00:00 2001 From: Eric Mertens Date: Thu, 30 Jan 2025 13:36:18 -0800 Subject: [PATCH] fdrop snotes --- myirc/include/snote.hpp | 3 +++ myirc/snote.cpp | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/myirc/include/snote.hpp b/myirc/include/snote.hpp index d34f70b..aef0601 100644 --- a/myirc/include/snote.hpp +++ b/myirc/include/snote.hpp @@ -19,6 +19,9 @@ enum class SnoteTag CreateChannel, DisconnectingKlined, DroppedChannel, + DroppedNick, + DroppedNickRename, + DroppedAccount, FailedChallenge, FailedChallengeFingerprintMismatch, FailedChallengeHostMismatch, diff --git a/myirc/snote.cpp b/myirc/snote.cpp index e1c91c4..6ec158e 100644 --- a/myirc/snote.cpp +++ b/myirc/snote.cpp @@ -104,6 +104,15 @@ const SnotePattern static patterns[] = { {SnoteTag::DroppedChannel, "^\x02([^ ]+)\x02 dropped the channel \x02([^ ]+)\x02$"}, + {SnoteTag::DroppedAccount, + "^\x02([^ ]+)\x02 dropped the account \x02([^ ]+)\x02$"}, + + {SnoteTag::DroppedNick, + "^\x02([^ ]+)\x02 dropped the nick \x02([^ ]+)\x02 from ([^ ]+)$"}, + + {SnoteTag::DroppedNickRename, + "^\x02([^ ]+)\x02 dropped the nick \x02([^ ]+)\x02 from ([^ ]+), changing account name to \x02([^ ]+)\x02$"}, + {SnoteTag::Spambot, R"(^User ([^ ]+) \(([^ ]+)@([^ ]+)\) trying to join ([^ ]+) is a possible spambot$)"},