From f81229a9994993d9aa0f25feadec49e1330ab828 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 22 Jul 2011 14:24:26 -0400 Subject: [PATCH] don't give a status report to ourselves when we join the AFC channel --- irc/commands/afc_status.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/irc/commands/afc_status.py b/irc/commands/afc_status.py index f07e43e..9273a53 100644 --- a/irc/commands/afc_status.py +++ b/irc/commands/afc_status.py @@ -1,11 +1,13 @@ # -*- coding: utf-8 -*- -# Report the status of AFC submissions, either as an automatic message on join or a request via !status. +"""Report the status of AFC submissions, either as an automatic message on join +or a request via !status.""" import json import re import urllib +from core import config from irc.classes import BaseCommand class AFCStatus(BaseCommand): @@ -20,7 +22,8 @@ class AFCStatus(BaseCommand): return True try: if data.line[1] == "JOIN" and data.chan == "#wikipedia-en-afc": - return True + if data.nick != config.irc["frontend"]["nick"]: + return True except IndexError: pass return False