@@ -1600,14 +1600,14 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
1600
1600
IsPluginID (strArgument.Mid (1 , PLUGIN_UNIQUE_ID_LENGTH))
1601
1601
)
1602
1602
{ // correct syntax for plugin call
1603
- strPluginID = strArgument.Mid (1 , PLUGIN_UNIQUE_ID_LENGTH);
1603
+ strPluginID = strArgument.Mid (0 , PLUGIN_UNIQUE_ID_LENGTH + 2 );
1604
1604
strArgument = strArgument.Mid (PLUGIN_UNIQUE_ID_LENGTH + 2 ); // drop the plugin ID stuff
1605
1605
1606
- m_CurrentPlugin = GetPlugin (strPluginID);
1606
+ m_CurrentPlugin = GetPlugin (strPluginID. Mid ( 1 , PLUGIN_UNIQUE_ID_LENGTH) );
1607
1607
1608
1608
if (!m_CurrentPlugin)
1609
1609
{
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) ));
1611
1611
m_CurrentPlugin = pSavedPlugin;
1612
1612
return ;
1613
1613
} // if not found
@@ -1681,7 +1681,7 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
1681
1681
1682
1682
ColourTell (strColour, " " , CFormat (" %3i. " , iTrigger + 1 ));
1683
1683
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),
1685
1685
pLabel, " Click to view this trigger" , " cyan" , " " , 0 );
1686
1686
1687
1687
ColourNote (strColour, " " , CFormat (" %*s %s" , iSpaces, " " , (LPCTSTR) strMatch));
@@ -1743,7 +1743,7 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
1743
1743
ColourTell (strColour, " " , CFormat (" %3i. " , iAlias + 1 ));
1744
1744
ColourTell (strColour, " " , CFormat (" %6s, %8s : " , pType, pActive));
1745
1745
1746
- Hyperlink (CFormat (" !!" DEBUG_PLUGIN_ID " :showalias(%s) " , pLabel),
1746
+ Hyperlink (CFormat (" !!" DEBUG_PLUGIN_ID " :showalias(%s%s) " , (LPCTSTR) strPluginID , pLabel),
1747
1747
pLabel, " Click to view this alias" , " cyan" , " " , 0 );
1748
1748
1749
1749
@@ -1818,7 +1818,7 @@ void CMUSHclientDoc::DebugHelper (const CString strAction, CString strArgument)
1818
1818
ColourTell (strColour, " " , CFormat (" %3i. " , iCount + 1 ));
1819
1819
ColourTell (strColour, " " , CFormat (" %8s : " , pActive));
1820
1820
1821
- Hyperlink (CFormat (" !!" DEBUG_PLUGIN_ID " :showtimer(%s) " , pLabel),
1821
+ Hyperlink (CFormat (" !!" DEBUG_PLUGIN_ID " :showtimer(%s%s) " , (LPCTSTR) strPluginID , pLabel),
1822
1822
pLabel, " Click to view this timer" , " cyan" , " " , 0 );
1823
1823
1824
1824
0 commit comments