#define CB_CHECKQUIET 0x1 /* Check for quiet flag on recipients */
#define CB_NOSPOOF 0x2 /* Use nospoof emits */
#define CB_PRESENCE 0x4 /* This is a presence message, not sound */
+#define CB_NONAME 0x8 /* Omit player name from broadcast */
#define CUdbref(u) ((u)->who)
#define CUtype(u) ((u)->type)
if (u) {
if (!Channel_Quiet(c) && (Channel_Admin(c) || Channel_Director(c)
|| (!Chanuser_Hide(u) && !Dark(player))))
- format_channel_broadcast(c, u, player, CB_CHECKQUIET | CB_PRESENCE,
- msg, NULL);
+ format_channel_broadcast(c, u, player, CB_CHECKQUIET | CB_PRESENCE
+ | CB_NONAME, msg, NULL);
if (ungag)
CUtype(u) &= ~CU_GAG;
}
else if (u &&CUtitle(u))
title = CUtitle(u);
- if (Channel_NoNames(chan)) {
+ if (flags & CB_NONAME) {
+ flags &= ~CB_NONAME;
+ snprintf(buff, BUFFER_LEN, "%s %s", ChanObjName(chan), msg);
+ } else if (Channel_NoNames(chan)) {
if (Channel_NoTitles(chan) || !title)
snprintf(buff, BUFFER_LEN, "%s %s %s", ChanObjName(chan), "Someone", msg);
else