Commit 184a0960 authored by Benjamin Graillot's avatar Benjamin Graillot

Oups

parent 959705b7
......@@ -192,7 +192,7 @@ def idle_loop(host, user, password, ninja):
if comment: comment = comment.group('comment')
if page_user:
ninja.push_update(page_user.group('page'), page_user.group('user'), int(revision.group('rev')), comment)
page_new_user = re.search(r'La page « (?P<page>.*) » a été renommée « (?P<new>.*) » par (?P<user>.*) :')
page_new_user = re.search(r'La page « (?P<page>.*) » a été renommée « (?P<new>.*) » par (?P<user>.*) :', body)
if page_new_user:
ninja.push_update(page_new_user.group('page'), page_user.group('user'), page_new_user.group('new'), comment, type=Update.rename)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment