-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhereami.tcl
150 lines (128 loc) · 3.92 KB
/
whereami.tcl
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
##############################################################################
# whereami.tcl 1.2 by Turranius #
# If whereami.sh is not located in /glftpd/bin/, then change #
# the path to 'set whereamibin' below. #
# See whereami.sh script for more detailed installation instructions. #
##############################################################################
bind pub - !alup pub:alup
bind pub - !aldn pub:aldn
bind pub - !mnup pub:mnup
bind pub - !mndn pub:mndn
bind pub - !wkup pub:wkup
bind pub - !wkdn pub:wkdn
bind pub - !tdup pub:tdup
bind pub - !tddn pub:tddn
bind pub - !nuketop pub:nuketop
bind pub - !galup pub:galup
bind pub - !galdn pub:galdn
bind pub - !gmnup pub:gmnup
bind pub - !gmndn pub:gmndn
bind pub - !gwkup pub:gwkup
bind pub - !gwkdn pub:gwkdn
bind pub - !gtdup pub:gtdup
bind pub - !gtddn pub:gtddn
set whereamibin {/glftpd/bin/whereami.sh}
#--[ Dont touch below ]--#
proc pub:alup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who a u]
putquick "PRIVMSG $chan :$output"
}
proc pub:aldn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who a d]
putquick "PRIVMSG $chan :$output"
}
proc pub:mnup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who m u]
putquick "PRIVMSG $chan :$output"
}
proc pub:mndn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who m d]
putquick "PRIVMSG $chan :$output"
}
proc pub:wkup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who w u]
putquick "PRIVMSG $chan :$output"
}
proc pub:wkdn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who w d]
putquick "PRIVMSG $chan :$output"
}
proc pub:tdup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who t u]
putquick "PRIVMSG $chan :$output"
}
proc pub:tddn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who t d]
putquick "PRIVMSG $chan :$output"
}
proc pub:galup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who A u]
putquick "PRIVMSG $chan :$output"
}
proc pub:galdn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who A d]
putquick "PRIVMSG $chan :$output"
}
proc pub:gmnup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who M u]
putquick "PRIVMSG $chan :$output"
}
proc pub:gmndn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who M d]
putquick "PRIVMSG $chan :$output"
}
proc pub:gwkup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who W u]
putquick "PRIVMSG $chan :$output"
}
proc pub:gwkdn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who W d]
putquick "PRIVMSG $chan :$output"
}
proc pub:gtdup {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who T u]
putquick "PRIVMSG $chan :$output"
}
proc pub:gtddn {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin $who T d]
putquick "PRIVMSG $chan :$output"
}
proc pub:nuketop {nick output binary chan text} {
global whereamibin
set who [lindex $text 0]
set output [exec $whereamibin nuketop $who]
putquick "PRIVMSG $chan :$output"
}
putlog "WhereAmI.tcl 1.2 by Turranius loaded"