Changed chat color for unimportant messages

This commit is contained in:
Michiel Broek 2005-04-23 11:14:28 +00:00
parent 2070e08969
commit db7de3deac
4 changed files with 21 additions and 7 deletions

View File

@ -41,6 +41,7 @@ v0.71.2 16-Jan-2005
the chat input and one general input function. This may have
effects for all users not using us-ascii keyboards.
Added more support for Chinese using the traduce function.
Changed color for chat lines with one * at the begin.
mbfido:
Empty *.msg netmails for our own system are dropped with and
@ -66,6 +67,9 @@ v0.71.2 16-Jan-2005
code we will build inter-bbs chat. Currently this only works
to connect/disconnect servers to build the network.
mbmon:
Changed color for chat lines with one * at the begin.
mbsetup:
Added language defaults for Chinese.
Removed obsolete bbslist editor.

View File

@ -486,9 +486,12 @@ void Showline(int y, int x, char *msg)
putchar(msg[i]);
}
}
} else if (msg[0] == '*') {
} else if ((msg[0] == '*') && (msg[1] == '*')) {
mbse_colour(LIGHTRED, BLACK);
mbse_mvprintw(y, x, msg);
} else if (msg[0] == '*') {
mbse_colour(LIGHTMAGENTA, BLACK);
mbse_mvprintw(y, x, msg);
} else {
mbse_colour(GREEN, BLACK);
mbse_mvprintw(y, x, msg);

View File

@ -101,9 +101,12 @@ void Showline(int y, int x, char *msg)
PUTCHAR(msg[i]);
}
}
} else if (msg[0] == '*') {
} else if ((msg[0] == '*') && (msg[0] == '*')) {
colour(LIGHTRED, BLACK);
mvprintw(y, x, msg);
} else if (msg[0] == '*') {
colour(LIGHTMAGENTA, BLACK);
mvprintw(y, x, msg);
} else {
colour(GREEN, BLACK);
mvprintw(y, x, msg);

View File

@ -163,11 +163,15 @@ void dump_ncslist(void)
}
if (usrchg) {
Syslog('+', "IBC: Server User Name/Nick Channel Cop Connect time");
Syslog('+', "IBC: -------------------- -------------------- --------- ------------- --- --------------------");
for (usrp = users; usrp; usrp = usrp->next) {
Syslog('+', "IBC: %-20s %-20s %-9s %-13s %s %s", usrp->server, usrp->realname, usrp->nick, usrp->channel,
usrp->chanop ? "yes":"no ", rfcdate(usrp->connected));
if (users) {
Syslog('+', "IBC: Server User Name/Nick Channel Cop Connect time");
Syslog('+', "IBC: -------------------- -------------------- --------- ------------- --- --------------------");
for (usrp = users; usrp; usrp = usrp->next) {
Syslog('+', "IBC: %-20s %-20s %-9s %-13s %s %s", usrp->server, usrp->realname, usrp->nick, usrp->channel,
usrp->chanop ? "yes":"no ", rfcdate(usrp->connected));
}
} else {
Syslog('+', "IBC: Users list is empty");
}
}