summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2016-07-15 22:15:50 +1200
committerFlorian Baumann <derflob@derflob.de>2016-07-15 22:15:50 +1200
commit9267551b36e80dac55514bb10bef5abfd38d03b1 (patch)
tree23e9a5680120b8469fb490850383a926f15fb8b5
parent4844dda01f4a5f5a7479ccd403d71e89bf0b5ff9 (diff)
downloadxmpp-9267551b36e80dac55514bb10bef5abfd38d03b1.tar.gz
xmpp-9267551b36e80dac55514bb10bef5abfd38d03b1.tar.bz2
fix re pattern
-rw-r--r--__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/__init__.py b/__init__.py
index f382bf1..bd56788 100644
--- a/__init__.py
+++ b/__init__.py
@@ -102,9 +102,9 @@ class OctoXMPP(EventHandlerPlugin, SettingsPlugin):
def _process_message(self, msg):
nick = self._settings.get(['xmpp', 'resource'])
if (msg.get_type() == "groupchat"):
- pattern = r"({}[\s\W]+){1}(?P<cmd>.*)".format(nick)
+ pattern = r"({}[\s\W]+){{1}}(?P<cmd>.*)".format(nick)
else:
- pattern = r"({}[\s\W]+){0,1}(?P<cmd>.*)".format(nick)
+ pattern = r"({}[\s\W]+){{0,1}}(?P<cmd>.*)".format(nick)
m = re.match(pattern, msg['body'], re.I)
if (m):