Skip to content

Commit 51afefe

Browse files
author
lagaffe
committed
update bridge message format
1 parent cc78e52 commit 51afefe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ircbot/abstractbot.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,9 @@ def feed(self, user, target, text, sudo=False):
157157
# sent on the other side of the bridge, and use them as user and text
158158

159159
if user in self.bridge_bots:
160-
self.log.debug("msg from bridge")
161-
match = re.match(r"^\s*\[\s*([^>]+)\s*\]\s*(.+)", text)
160+
match = re.match(r"^\s*\[\s*([^>]+)\s*\]:\s*(.+)", text)
162161
if match:
163-
self.log.debug("command from bridge" + user)
162+
self.log.debug("message from bridged user" + user)
164163
user = match.group(1)
165164
text = match.group(2)
166165

0 commit comments

Comments
 (0)