Fixed a bug that prevented the quirk testing window from actually testing quirks.

This commit is contained in:
karxi 2016-12-07 17:21:53 -05:00
parent c019e45c7a
commit 0c2ef90f94

View file

@ -745,8 +745,13 @@ def kxhandleInput(ctx, text=None, flavor=None):
# Begin message processing. # Begin message processing.
# We use 'text' despite its lack of processing because it's simpler. # We use 'text' despite its lack of processing because it's simpler.
if should_quirk and not (is_action or is_ooc): if should_quirk and not (is_action or is_ooc):
if flavor != "menus":
# Fetch the quirks we'll have to apply. # Fetch the quirks we'll have to apply.
quirks = ctx.mainwindow.userprofile.quirks quirks = ctx.mainwindow.userprofile.quirks
else:
# The quirk testing window uses a different set.
quirks = pesterQuirks(ctx.parent().testquirks())
try: try:
# Do quirk things. (Ugly, but it'll have to do for now.) # Do quirk things. (Ugly, but it'll have to do for now.)
# TODO: Look into the quirk system, modify/redo it. # TODO: Look into the quirk system, modify/redo it.