From d4be5182e4a5785395abfe9e0b954f00e652e298 Mon Sep 17 00:00:00 2001 From: dgw Date: Wed, 28 Aug 2024 15:38:45 -0500 Subject: [PATCH] Release 0.3.1 - CTCP ACTION bugfix for nicks with punctuation --- NEWS | 5 +++++ pyproject.toml | 2 +- sopel_slap/plugin.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 291d6f7..cc4779e 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,10 @@ ## Changelog +### 0.3.1 + +* Fix CTCP ACTION compatibility with hyphenated nicks + + ### 0.3.0 * Add CTCP ACTION support, e.g. `/me slaps ____` (#2) diff --git a/pyproject.toml b/pyproject.toml index 3f62563..ec5f75e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ namespaces = false [project] name = "sopel-slap" -version = "0.3.0" +version = "0.3.1" description = "Plugin for Sopel that lets users slap each other in fun ways" keywords = [ "sopel", diff --git a/sopel_slap/plugin.py b/sopel_slap/plugin.py index 75272f3..2e6d75d 100644 --- a/sopel_slap/plugin.py +++ b/sopel_slap/plugin.py @@ -37,7 +37,7 @@ def slap_command(bot, trigger): @plugin.ctcp('ACTION') -@plugin.rule(r'^slaps (\w+)$') +@plugin.rule(r'^slaps (\S+)$') def slap_action(bot, trigger): """Slap someone using the power of CTCP ACTION.""" target = trigger.group(1)