File: guh

package info (click to toggle)
epic 3.004-17.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,192 kB
  • ctags: 3,197
  • sloc: ansic: 40,843; makefile: 530; sh: 129; perl: 17
file content (46 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * guh Copyright 1993 - Dont ask me why i called it that.  I just did.
 *
 * Written by Jeremy Nelson (nelson@cs.uwp.edu)
 * Requires ircII-EPIC
 *
 * General aliases that are usefull for tracking
 *  "whatchan" - returns all the channels a person is on
 *  "is_on" - returns the nickname of a user if s/he is on.
 *  "uh" - takes a list of names and returns a list of userhosts
 *         corresponding to those nicks
 *  "inc" - more for antiquity's sake, proves a point
 */

alias whatchan {
	stack push on 319
	^on ^319 * {
		return $1-
		stack pop on 319
	}
	^whois $0
	wait
}
alias is_on {
	stack push on 303
	^on ^303 * {
		return $0
		stack pop on 303
	}
	ison $0
	wait
}

alias uh {
	^assign -blahblah
	^userhost $* -cmd {
		push blahblah $3@$4
	}
	^wait
	@ function_return = blahblah
}
alias inc {
	@ $0 += [$1]?[$1]:1
}

#hop'93