Skip to content

Commit 6875194

Browse files
committed
Debug 'summary' now shows the language used by plugins
1 parent a111ac3 commit 6875194

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

scripting/methods/methods_utilities.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
// Hash
3232
// Help
3333
// MakeRegularExpression
34-
// Menu// MtRand
34+
// Menu
35+
// MtRand
3536
// MtSrand
3637
// Open
3738
// OpenBrowser

world_debug.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,8 +1286,14 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
12861286
Hyperlink (CFormat ("!!" DEBUG_PLUGIN_ID ":editplugin(_%s_)",(LPCTSTR) pPlugin->m_strID),
12871287
pPlugin->m_strName, "Click to edit plugin", "cyan", "", 0);
12881288

1289-
ColourTell (strColour, "", TFormat ("', %8s",
1290-
pActive));
1289+
CString strLanguage = pPlugin->m_strLanguage;
1290+
if (strLanguage.IsEmpty ())
1291+
strLanguage = "none";
1292+
else
1293+
strLanguage.SetAt (0, toupper (strLanguage [0]));
1294+
1295+
ColourTell (strColour, "", TFormat ("', (%s) %s",
1296+
(LPCSTR) strLanguage, pActive));
12911297

12921298
// no quick way of finding variables count
12931299
int nTotalVariables = 0;

0 commit comments

Comments
 (0)