From bb0eadbbea7b9a3ea4184ac934cac59c11d848ce Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 22 Apr 2022 10:14:47 +0000 Subject: [PATCH 1/2] support +draft/channel-context in modules/greeting.py --- modules/greeting.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/greeting.py b/modules/greeting.py index 9f5b9b78..a25e2e12 100644 --- a/modules/greeting.py +++ b/modules/greeting.py @@ -2,6 +2,8 @@ from src import ModuleManager, utils +CAP = utils.irc.Capability("message-tags", "draft/message-tags-0.2") + @utils.export("channelset", utils.Setting("greeting", "Set a greeting to send to users when they join", example="welcome to the channel!")) @@ -10,5 +12,9 @@ class Module(ModuleManager.BaseModule): def join(self, event): greeting = event["channel"].get_setting("greeting", None) if greeting: + tags = {} + if event["server"].has_capability(CAP): + tags["+draft/channel-context"] = event["channel"].name + event["user"].send_notice("[%s] %s" % (event["channel"].name, - greeting)) + greeting), tags) From db0fae98696a339b5b542136cad6834b0826aef6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Jul 2022 20:10:21 +0000 Subject: [PATCH 2/2] Bump lxml from 4.6.3 to 4.9.1 Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.9.1. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.3...lxml-4.9.1) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9d13bb9e..7a160547 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ dnspython ==2.0.0 feedparser ==6.0.2 html5lib ==1.0.1 isodate ==0.6.0 -lxml ==4.6.3 +lxml ==4.9.1 netifaces ==0.10.9 PySocks ==1.7.1 python-dateutil ==2.8.1