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 the chat input and one general input function. This may have
effects for all users not using us-ascii keyboards. effects for all users not using us-ascii keyboards.
Added more support for Chinese using the traduce function. Added more support for Chinese using the traduce function.
Changed color for chat lines with one * at the begin.
mbfido: mbfido:
Empty *.msg netmails for our own system are dropped with and 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 code we will build inter-bbs chat. Currently this only works
to connect/disconnect servers to build the network. to connect/disconnect servers to build the network.
mbmon:
Changed color for chat lines with one * at the begin.
mbsetup: mbsetup:
Added language defaults for Chinese. Added language defaults for Chinese.
Removed obsolete bbslist editor. Removed obsolete bbslist editor.

View File

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

View File

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

View File

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