diff --git a/modules/MegaHAL.py b/modules/MegaHAL.py index c7b37fd..04f7d5e 100644 --- a/modules/MegaHAL.py +++ b/modules/MegaHAL.py @@ -69,7 +69,8 @@ class MegaHAL(Module): reply = self.megahal.get_reply(line) elif re.search('^megahal$', line, re.IGNORECASE) is not None: reply = self.megahal.get_reply_nolearn('') - else: + elif replypath is not None: + # only learn if the command is not an internal one self.megahal.learn(line) self.megahal.sync()