- fprintf(tf, "\r\nMessage from ");
-#ifdef interdata
- fprintf(tf, "(Interdata) " );
-#endif
- fprintf(tf, "%s on %s at %d:%02d ...\r\n\a\a\a"
- , me, mytty , localclock -> tm_hour , localclock -> tm_min );
+ { char hostname[32];
+ gethostname(hostname, sizeof (hostname));
+ fprintf(tf, "\r\nMessage from ");
+ fprintf(tf, "%s!%s on %s at %d:%02d ...\r\n\a\a\a",
+ hostname, me, mytty, localclock->tm_hour, localclock->tm_min);
+ }