summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/char.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp
index 47fbba2..18fda91 100644
--- a/src/char/char.cpp
+++ b/src/char/char.cpp
@@ -822,14 +822,16 @@ void create_online_files(void)
// without/with 'GM' display
GmLevel gml = isGM(cd.key.account_id);
{
- if (gml.satisfies(char_conf.online_gm_display_min_level))
+ if ((gml.satisfies(char_conf.online_gm_display_min_level) &&
+ !(gml.get_all_bits() % 10)) || gml.satisfies(GmLevel::from(99_u32)))
FPRINTF(fp, "%-24s (GM) "_fmt, cd.key.name);
else
FPRINTF(fp, "%-24s "_fmt, cd.key.name);
}
// name of the character in the html (no < >, because that create problem in html code)
FPRINTF(fp2, " <td>"_fmt);
- if (gml.satisfies(char_conf.online_gm_display_min_level))
+ if ((gml.satisfies(char_conf.online_gm_display_min_level) &&
+ !(gml.get_all_bits() % 10)) || gml.satisfies(GmLevel::from(99_u32)))
FPRINTF(fp2, "<b>"_fmt);
for (char c : cd.key.name.to__actual())
{
@@ -849,7 +851,8 @@ void create_online_files(void)
break;
};
}
- if (gml.satisfies(char_conf.online_gm_display_min_level))
+ if ((gml.satisfies(char_conf.online_gm_display_min_level) &&
+ !(gml.get_all_bits() % 10)) || gml.satisfies(GmLevel::from(99_u32)))
FPRINTF(fp2, "</b> (GM)"_fmt);
FPRINTF(fp2, "</td>\n"_fmt);
}