From 0c2ef90f94781edabb0cecaa70341d02e0d356a3 Mon Sep 17 00:00:00 2001 From: karxi Date: Wed, 7 Dec 2016 17:21:53 -0500 Subject: [PATCH] Fixed a bug that prevented the quirk testing window from actually testing quirks. --- parsetools.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/parsetools.py b/parsetools.py index b689194..0443b6b 100644 --- a/parsetools.py +++ b/parsetools.py @@ -745,8 +745,13 @@ def kxhandleInput(ctx, text=None, flavor=None): # Begin message processing. # We use 'text' despite its lack of processing because it's simpler. if should_quirk and not (is_action or is_ooc): - # Fetch the quirks we'll have to apply. - quirks = ctx.mainwindow.userprofile.quirks + if flavor != "menus": + # Fetch the quirks we'll have to apply. + quirks = ctx.mainwindow.userprofile.quirks + else: + # The quirk testing window uses a different set. + quirks = pesterQuirks(ctx.parent().testquirks()) + try: # Do quirk things. (Ugly, but it'll have to do for now.) # TODO: Look into the quirk system, modify/redo it.