From 17f798c8fd427b522b7d013153a2d93fdc5521e6 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 14 May 2011 00:09:54 -0400 Subject: [PATCH] fix --- config/watcher.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/watcher.py b/config/watcher.py index 576b04a..6e2fe28 100644 --- a/config/watcher.py +++ b/config/watcher.py @@ -8,8 +8,7 @@ import re from wiki import task_manager # Define different report channels on our front-end server. They /must/ be in CHANS in config/irc.py or the bot will not be able to send messages to them (unless they have -n set). -#AFC_CHANS = ["#wikipedia-en-afc"] # report recent AfC changes/give AfC status messages upon join -AFC_CHANS = ["##earwigbot"] # report recent AfC changes/give AfC status messages upon join +AFC_CHANS = ["#wikipedia-en-afc"] # report recent AfC changes/give AfC status messages upon join BOT_CHANS = ["##earwigbot", "#wikipedia-en-afc"] # report edits containing "!earwigbot" # Define some commonly used strings. @@ -58,7 +57,7 @@ def process(rc): task_manager.start_task("afc_copyvios", action="process_delete", page=p) chans.update(AFC_CHANS) - elif rc.flags == "delete" and r_restore.match(comment): + elif rc.flags == "restore" and r_restore.match(comment): p = r_restored_page.findall(rc.comment)[0][0] task_manager.start_task("afc_statistics", action="process_restore", page=p) task_manager.start_task("afc_copyvios", action="process_restore", page=p)