From 41e369e68eac7b05f8cda312f9668942dc688aa7 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 22 May 2013 18:21:17 -0400 Subject: [PATCH] mniip: add back missing easter egg --- src/cat/TPTScriptInterface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 43bb67b8d..34d1927c0 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -261,6 +261,9 @@ AnyType TPTScriptInterface::tptS_set(std::deque * words) newValue = GetParticleType(((StringType)value).Value()); if (newValue < 0 || newValue >= PT_NUM) { + // TODO: add element CAKE to invalidate this + if (!strcasecmp(((StringType)value).Value().c_str(),"cake")) + throw GeneralException("Cake is a lie, not an element"); throw GeneralException("Invalid element"); } }