two more snotes
This commit is contained in:
parent
9f49baa6ad
commit
b0f254eb13
5
main.cpp
5
main.cpp
@ -106,6 +106,11 @@ static auto start(boost::asio::io_context &io, const Settings &settings) -> void
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
client->sig_chat.connect([client, connection](const Chat &chat){
|
||||||
|
if (chat.source.starts_with("glguy!") && client->is_my_nick(chat.target)) {
|
||||||
|
connection->send_notice("glguy", chat.message);
|
||||||
|
}});
|
||||||
|
|
||||||
connection->sig_disconnect.connect(
|
connection->sig_disconnect.connect(
|
||||||
[&io, &settings, client, bot]() {
|
[&io, &settings, client, bot]() {
|
||||||
client->shutdown();
|
client->shutdown();
|
||||||
|
@ -80,6 +80,12 @@ const SnotePattern static patterns[] = {
|
|||||||
|
|
||||||
{SnoteTag::NickCollision,
|
{SnoteTag::NickCollision,
|
||||||
R"(^Nick collision due to services forced nick change on ([^ ]+)$)"},
|
R"(^Nick collision due to services forced nick change on ([^ ]+)$)"},
|
||||||
|
|
||||||
|
{SnoteTag::OperspyWhois,
|
||||||
|
R"(^OPERSPY ([^ ]+)!([^ ]+)@([^ ]+)\{([^ ]+)\} WHOIS ([^ ]+)!([^ ]+)@([^ ]+) ([^ ]+)$)"},
|
||||||
|
|
||||||
|
{SnoteTag::Freeze,
|
||||||
|
R"(^([^ ]+) froze the account ([^ ]+) \((.*)\)\.$)"},
|
||||||
};
|
};
|
||||||
|
|
||||||
static auto setup_database() -> hs_database_t *
|
static auto setup_database() -> hs_database_t *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user