-
Notifications
You must be signed in to change notification settings - Fork 0
/
freenode.tcl
28 lines (24 loc) · 1020 Bytes
/
freenode.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
bind pub n "!ban" op_and_ban
bind pub n "!unban" op_and_unban
bind pub n "!mute" op_and_mute
bind pub n "!unmute" op_and_unmute
proc op_and_ban {nick uhost handle chan text} {
global botnick
putserv "privmsg ChanServ :op $chan $botnick"
utimer 1 [list putserv "mode $chan +b-o [maskhost [lindex [split $text] 0]![getchanhost [lindex [split $text] 0] $chan] 2] $botnick " ]
}
proc op_and_unban {nick uhost handle chan text} {
global botnick
putserv "privmsg ChanServ :op $chan $botnick"
utimer 1 [list putserv "mode $chan -bo [lindex [split $text] 0] $botnick " ]
}
proc op_and_mute {nick uhost handle chan text} {
global botnick
putserv "privmsg ChanServ :op $chan $botnick"
utimer 1 [list putserv "mode $chan +q-o [maskhost [lindex [split $text] 0]![getchanhost [lindex [split $text] 0] $chan] 2] $botnick " ]
}
proc op_and_unmute {nick uhost handle chan text} {
global botnick
putserv "privmsg ChanServ :op $chan $botnick"
utimer 1 [list putserv "mode $chan -qo [lindex [split $text] 0] $botnick " ]
}