diff --git a/config/irc_config.py b/config/irc_config.py index 62ec6db..1bd35d1 100644 --- a/config/irc_config.py +++ b/config/irc_config.py @@ -19,7 +19,7 @@ REALNAME = "[[w:en:User:EarwigBot]]" # channels to join on main server's startup CHANS = ["##earwigbot", "##earwig", "#wikipedia-en-afc"] -AFC_CHANS = ["#wikipedia-en-afc"] # report recent AFC changes +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" # hardcoded hostnames of users with certain permissions diff --git a/irc/data.py b/irc/data.py index 367ac3f..60b68ef 100644 --- a/irc/data.py +++ b/irc/data.py @@ -5,6 +5,7 @@ class Data(object): def __init__(self): """store data from an individual line received on IRC""" + self.line = str() self.chan = str() self.nick = str() self.ident = str() diff --git a/irc/frontend.py b/irc/frontend.py index 283a926..f2f2049 100644 --- a/irc/frontend.py +++ b/irc/frontend.py @@ -38,6 +38,7 @@ def main(): for line in lines: line = line.strip().split() data = Data() + data.line = line if line[1] == "JOIN": data.nick, data.ident, data.host = re.findall(":(.*?)!(.*?)@(.*?)\Z", line[0])[0]