-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ircnick.tcl
30 lines (24 loc) · 1.02 KB
/
ircnick.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
# #
# Ircnick by Teqno #
# #
# Let's you check what ircnick user has on site, only #
# works for sites that require users to invite themselves into #
# channels. #
# #
#################################################################
bind pub - !ircnick pub:ircnick
set mainchania "changeme"
proc pub:ircnick {nick uhost handle chan arg} {
global mainchania
if {[matchattr $nick +o]} {
set binary {/glftpd/bin/ircnick.sh}
set release [lindex $arg 0]
set output [exec $binary $release $nick]
if { $chan == $mainchania } {
foreach line [split [exec $binary $release] "\n"] {
putquick "PRIVMSG $chan :$line"
}
}
} else { putquick "PRIVMSG $nick :You are not an op" }
}
putlog "Ircnick 1.1 by Teqno loaded"