From 56c87e927f8a55d6cfcf552b0b39a75e7b419695 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 24 Aug 2013 23:56:39 -0400 Subject: [PATCH] Fix cmd listener callback return behavior to match func doc (bug 5882, r=asherkin). --- core/ConsoleDetours.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ConsoleDetours.cpp b/core/ConsoleDetours.cpp index 854efc09..b3991ae3 100644 --- a/core/ConsoleDetours.cpp +++ b/core/ConsoleDetours.cpp @@ -688,7 +688,7 @@ cell_t ConsoleDetours::InternalDispatch(int client, const CCommand& args) if (strcmp(name, "sm") == 0) result = Pl_Continue; - if (result >= Pl_Stop) + if (result >= Pl_Handled) return result; Listener **plistener = m_CmdLookup.retrieve(name);