File: motd

package info (click to toggle)
epic5 2.0.1-1
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 4,696 kB
  • ctags: 6,357
  • sloc: ansic: 69,814; makefile: 715; ruby: 227; sh: 178; perl: 13
file content (16 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (word(2 $loadinfo()) != [pf]) { load -pf $word(1 $loadinfo()); return; };

# Here's the plan
# Output the MOTD for the user.
# Load this in "local" for maximum effect.

load less;
@ date = ftime(~/.ircII.motd);
@ fdate = ftime($irclib()/ircII.motd);
if (fdate && (date < fdate))
{
	less $irclib()/ircII.motd;
	exec touch ~/.ircII.motd;
};

#hop'97