Welcome to the Builder Academy

Question How to get rid of [group] in group channel messages?

More
15 Dec 2014 00:54 #5151 by dracmas
It doesn't show [group] when you gtell a message, but it does when other's in your group does. Also, it just feels off when other channels don't have it and this one does.
ex.
[say] Dracmas says 'Hi"
[gossip] Dracmas gossips 'Hi'

I added [group] manually, for when a player sends their own gtell so the channel matches for the whole channel, but would rather have it removed. Could someone explain the code for the particular section?
act.comm.c
Code:
@@ -86,12 +86,12 @@ ACMD(do_gsay) if (CONFIG_SPECIAL_IN_COMM && legal_communication(argument)) parse_at(argument); - send_to_group(ch, ch->group, "%s%s%s says, '%s'%s\r\n", CCGRN(ch, C_NRM), CCGRN(ch, C_NRM), GET_NAME(ch), argument, CCNRM(ch, C_NRM)); + send_to_group(ch, ch->group, "%s%s%s tells the group, '%s'%s\r\n", CBCYN(ch, C_NRM), CBCYN(ch, C_NRM), GET_NAME(ch), argument, CCNRM(ch, C_NRM)); if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT)) send_to_char(ch, "%s", CONFIG_OK); else - send_to_char(ch, "%sYou group-say, '%s'%s\r\n", CCGRN(ch, C_NRM), argument, CCNRM(ch, C_NRM)); + send_to_char(ch, "\x1B[0;36m[\x1B[1;36mGroup\x1B[0;36m]\x1B[0;0m %sYou tell the group, '%s'%s\r\n", CBCYN(ch, C_NRM), argument, CCNRM(ch, C_NRM)); } }

Please Log in or Create an account to join the conversation.

Time to create page: 0.155 seconds