$Log$
+ Revision 606.1 2003/05/20 01:28:50 error
+ * citadel.c: don't truncate roomname when user is idle, in long who list;
+ display idle time in short who list
+
Revision 606.0 2003/05/16 15:17:11 ajc
* THIS IS 6.06
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
idlesecs = (idletime - (idlehours * 3600) - (idlemins * 60));
if (idletime > rc_idle_threshold) {
+ /*
while (strlen(roomname) < 20) {
strcat(roomname, " ");
}
strcpy(&roomname[14], "[idle]");
+ */
if (skipidle)
isidle = 1;
}
color(BRIGHT_CYAN);
pprintf("%-25s ", username);
color(BRIGHT_MAGENTA);
- roomname[20] = 0;
- pprintf("%-20s ", roomname);
+ if (idletime > rc_idle_threshold) {
+ roomname[14] = 0;
+ pprintf("%-14s", roomname);
+ /* over 10 days, must be gone fishing */
+ if (idlehours > 239) {
+ pprintf("[fish] ");
+ /* over 10 hours */
+ } else if (idlehours > 9) {
+ pprintf("[%1ldd%02ld] ",
+ idlehours / 24,
+ idlehours % 24);
+ /* less than 10 hours */
+ } else {
+ pprintf("[%1ld:%02ld] ",
+ idlehours, idlemins);
+ }
+ } else {
+ roomname[20] = 0;
+ pprintf("%-20s ", roomname);
+ }
color(BRIGHT_CYAN);
fromhost[24] = '\0';
pprintf("%-24s\n", fromhost);