File: log

package info (click to toggle)
ircii 4.4-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 4,256 kB
  • ctags: 2,797
  • sloc: ansic: 36,743; sh: 907; makefile: 483; lex: 16
file content (14 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This is an example showing the use of /wait to get the output from a process and use it.
on ^exec thing assign thing $1
on ^exec_exit thing 
alias _log ^set logfile IrcLog.$thing
alias log.process {
	exec -name thing uptime
	wait %thing
	_log
}
alias log {
	if ( [$0] == [on] )
		{ ^log.process }
	set log $0
}