port_facts_to_django: properly import nickmask

This commit is contained in:
Brian S. Stephan 2015-06-20 16:24:24 -05:00
parent fd7feeccdc
commit 877e18c890
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ try:
category, c = FactCategory.objects.get_or_create(name=category_name)
fact_text = row[2]
nickmask = row[4]
nick = row[3]
usermask = row[4]
nickmask = nick + "!" + usermask
fact = Fact.objects.create(category=category, fact=fact_text, nickmask=nickmask)
except NoOptionError as noe:
sys.exit("Aborted due to error in config: {0:s}".format(str(noe)))