/***************************************************************************
- * Copyright (C) 2005-2019 by the Quassel Project *
+ * Copyright (C) 2005-2022 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
{IrcTagKey("rt"), "ql7"}},
"",
"foo"));
+
+ EXPECT_EQ(parse("@a=b foo"),
+ IrcMessage(
+ {{IrcTagKey("a"), "b"}},
+ "",
+ "foo"));
+
+ EXPECT_EQ(parse("@example.com/a=b foo"),
+ IrcMessage(
+ {{IrcTagKey("example.com", "a"), "b"}},
+ "",
+ "foo"));
+
+ EXPECT_EQ(parse("@example.com/subfolder/to/a=b foo"),
+ IrcMessage(
+ {{IrcTagKey("example.com/subfolder/to", "a"), "b"}},
+ "",
+ "foo"));
+
+ EXPECT_EQ(parse("@v\\/e\\/n\\/d\\/o\\/r/tag=b foo"),
+ IrcMessage(
+ {{IrcTagKey("v\\/e\\/n\\/d\\/o\\/r", "tag"), "b"}},
+ "",
+ "foo"));
}
TEST(IrcDecoderTest, with_escaped_tags)