ソースを参照

don't give a status report to ourselves when we join the AFC channel

tags/v0.1^2
Ben Kurtovic 13年前
コミット
f81229a999
1個のファイルの変更5行の追加2行の削除
  1. +5
    -2
      irc/commands/afc_status.py

+ 5
- 2
irc/commands/afc_status.py ファイルの表示

@@ -1,11 +1,13 @@
# -*- coding: utf-8 -*- # -*- 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 json
import re import re
import urllib import urllib


from core import config
from irc.classes import BaseCommand from irc.classes import BaseCommand


class AFCStatus(BaseCommand): class AFCStatus(BaseCommand):
@@ -20,7 +22,8 @@ class AFCStatus(BaseCommand):
return True return True
try: try:
if data.line[1] == "JOIN" and data.chan == "#wikipedia-en-afc": if data.line[1] == "JOIN" and data.chan == "#wikipedia-en-afc":
return True
if data.nick != config.irc["frontend"]["nick"]:
return True
except IndexError: except IndexError:
pass pass
return False return False


読み込み中…
キャンセル
保存