From 7d69c687b27a4f98cb1948ace9c3415c0227edb9 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 26 May 2014 21:55:02 -0400 Subject: [PATCH] Parser - ::findCommand failed to sport readcmd and helper commands because of a copy/paste error. --- src/Parser.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Parser.cpp b/src/Parser.cpp index a30042dd0..848e431a6 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -307,12 +307,9 @@ void Parser::findCommand () (*i)->tag ("CMD"); (*i)->attribute ("canonical", command); - if (exactMatch ("writecmd", (*i)->attribute ("raw"))) - (*i)->tag ("WRITECMD"); - else if (exactMatch ("writecmd", (*i)->attribute ("raw"))) - (*i)->tag ("READCMD"); - else if (exactMatch ("writecmd", (*i)->attribute ("raw"))) - (*i)->tag ("HELPER"); + if (exactMatch ("writecmd", command)) (*i)->tag ("WRITECMD"); + else if (exactMatch ("readcmd", command)) (*i)->tag ("READCMD"); + else if (exactMatch ("helper", command)) (*i)->tag ("HELPER"); return; }