File: dcc

package info (click to toggle)
epic4-script-light 1%3A2.8.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 764 kB
  • ctags: 1
  • sloc: makefile: 35; sh: 7
file content (89 lines) | stat: -rw-r--r-- 1,642 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
alias cdc if ([$0]) {
	fe ($*) xx {
		dcc close chat $xx
		@LIGHT.Data.DCC.pendingChat = remw($xx $LIGHT.Data.DCC.pendingChat)
	}
} {
	if (LIGHT.Data.DCC.pendingChat) {
		dcc close chat $shift(LIGHT.Data.DCC.pendingChat)
	} {
		lecho ? No chats pending to reject.
	}
}

alias cdg if ([$0]) {
	fe ($*) xx {
		dcc close get $xx
		@LIGHT.Data.DCC.pendingGet = remw($xx $LIGHT.Data.DCC.pendingGet)
	}
} {
	if (LIGHT.Data.DCC.pendingGet) {
		dcc close get $shift(LIGHT.Data.DCC.pendingGet)
	} {
		lecho ? No files pending to reject.
	}
}

alias cds if ([$0]) {
	fe ($*) xx { dcc close send $xx }
} {
	help dcc cds
}

alias dc if ([$0]) {
    fe ($*) xx {
		dcc chat $xx
		@LIGHT.Data.DCC.pendingChat = remw($xx $LIGHT.Data.DCC.pendingChat)
	}
} {
	if (LIGHT.Data.DCC.pendingChat) {
    	dcc chat $shift(LIGHT.Data.DCC.pendingChat)
	} {
		lecho ? No chats pending to accept.
	}
}

alias dg if ([$0]) {
    fe ($*) xx {
		dcc get $xx
		@LIGHT.Data.DCC.pendingGet = remw($xx $LIGHT.Data.DCC.pendingGet)
	}
} {
	if (LIGHT.Data.DCC.pendingGet) {
		dcc get $shift(LIGHT.Data.DCC.pendingGet)
	} {
		lecho ? No files pending to accept.
	}
}

alias dl dcc list
alias quietdl {
	@LIGHT.Data.dccStatus.quiet = 1
	dl
}

alias dr if ([$1]) {
    dcc rename $0-
} {
	dcc rename $word(0 $LIGHT.Data.DCC.pendingGet) $0
}

alias ds dcc send

alias mcds if ([$0]) {
	fe ($*) xx { dcc close send -all $0 }
} {
	help dcc mcds
}

alias mcdg if ([$0]) {
	fe ($*) xx {
		dcc close get -all $0
		@LIGHT.Data.DCC.pendingGet = remws($xx / $LIGHT.Data.DCC.pendingGet)
	}
} {
	help dcc mcds
}

alias mdc dc $LIGHT.Data.DCC.pendingChat
alias mdg dg $LIGHT.Data.DCC.pendingGet