Skip to content

Commit 5e7dec9

Browse files
committed
Fixed bug in Debug 'summary'
1 parent 1e1532e commit 5e7dec9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

world_debug.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,14 +1600,14 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
16001600
IsPluginID (strArgument.Mid (1, PLUGIN_UNIQUE_ID_LENGTH))
16011601
)
16021602
{ // correct syntax for plugin call
1603-
strPluginID = strArgument.Mid (1, PLUGIN_UNIQUE_ID_LENGTH);
1603+
strPluginID = strArgument.Mid (0, PLUGIN_UNIQUE_ID_LENGTH + 2);
16041604
strArgument = strArgument.Mid (PLUGIN_UNIQUE_ID_LENGTH + 2); // drop the plugin ID stuff
16051605

1606-
m_CurrentPlugin = GetPlugin (strPluginID);
1606+
m_CurrentPlugin = GetPlugin (strPluginID.Mid (1, PLUGIN_UNIQUE_ID_LENGTH));
16071607

16081608
if (!m_CurrentPlugin)
16091609
{
1610-
Note (TFormat ("Plugin ID %s does not exist.", (LPCTSTR) strPluginID));
1610+
Note (TFormat ("Plugin ID %s does not exist.", (LPCTSTR) strPluginID.Mid (1, PLUGIN_UNIQUE_ID_LENGTH)));
16111611
m_CurrentPlugin = pSavedPlugin;
16121612
return;
16131613
} // if not found
@@ -1681,7 +1681,7 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
16811681

16821682
ColourTell (strColour, "", CFormat ("%3i. ", iTrigger + 1));
16831683
ColourTell (strColour, "", CFormat ("%6s, %8s : ", pType, pActive));
1684-
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":showtrigger(%s)", pLabel),
1684+
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":showtrigger(%s%s)", (LPCTSTR) strPluginID, pLabel),
16851685
pLabel, "Click to view this trigger", "cyan", "", 0);
16861686

16871687
ColourNote (strColour, "", CFormat ("%*s %s", iSpaces, "", (LPCTSTR) strMatch));
@@ -1743,7 +1743,7 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
17431743
ColourTell (strColour, "", CFormat ("%3i. ", iAlias + 1));
17441744
ColourTell (strColour, "", CFormat ("%6s, %8s : ", pType, pActive));
17451745

1746-
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":showalias(%s)", pLabel),
1746+
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":showalias(%s%s)", (LPCTSTR) strPluginID, pLabel),
17471747
pLabel, "Click to view this alias", "cyan", "", 0);
17481748

17491749

@@ -1818,7 +1818,7 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
18181818
ColourTell (strColour, "", CFormat ("%3i. ", iCount + 1));
18191819
ColourTell (strColour, "", CFormat ("%8s : ", pActive));
18201820

1821-
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":showtimer(%s)", pLabel),
1821+
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":showtimer(%s%s)", (LPCTSTR) strPluginID, pLabel),
18221822
pLabel, "Click to view this timer", "cyan", "", 0);
18231823

18241824

0 commit comments

Comments
 (0)