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$)"},