Code: Select all
putquick "PRIVMSG chanserv@services.dal.net :AOP $chan list" -next
putquick "PRIVMSG chanserv@services.dal.net :AOP $chan list"
putserv "PRIVMSG chanserv@services.dal.net :AOP $chan list"
Code: Select all
putserv "chanserv aop $chan list"
or
putserv "chanserv :aop $chan list"
#I am not sure but one of these will work. I think the one without the ":".
#You can use the same with putquick, puthelp etc.
Code: Select all
# File name of the storage file for the access list.
set accesslist "accesslist.txt"
# Full name of channel services
set chanserv "chanserv@Services.dal.net"
bind pub n list access:list
bind notc - "*(*@*)*" write:list
proc write:list {nick host hand arg {dest ""}} {
if {([string equal $dest $::botnick]) && ([string equal $nick "ChanServ"])} {
# Create the storage file for the access list.
if {![file exists $::accesslist]} {
set acc_fd [open $::accesslist w]
puts $acc_fd "-ChanServ Access List Records-\n"
close $acc_fd
}
set acc_fd [open $::accesslist a]
puts $acc_fd $arg
close $acc_fd
}
}
proc access:list {nick uhost hand chan text} {
set type [string tolower $text]
if {[string match $type "aop"] || [string match $type "sop"]} {
# Remove old storage file
if {[file exists $::accesslist]} {file delete $::accesslist}
putserv "PRIVMSG $::chanserv :$type $chan list"
} else {
return
}
}
Code: Select all
bind notc - "*list for #*" write:list
bind notc - "*End of list*" write:list
Code: Select all
if {[string match $type "aop"] || [string match $type "sop"]} {
Code: Select all
if {[string match $type "aop"] || [string match $type "sop"] || [string match $type "hop"] || [string match $type "vop"]} {
Code: Select all
if {[regexp {(sop|aop|vop|hop)} $type]} {
Code: Select all
# Name of the storage file for the access list.
set accesslist "accesslist.txt"
# Full name of channel services
set chanserv "chanserv@Services.dal.net"
#################
# BIND commands #
#################
bind pub n list access:list
bind notc - "* list for *" write:list
bind notc - "*(*@*)*" write:list
bind notc - "*End of list.*" write:list
proc write:list {nick host hand arg {dest ""}} {
set msg [ctrl:filter $arg]
if {([string equal $dest $::botnick]) && ([string equal $nick "ChanServ"])} {
# Create the storage file for the access list.
set acc_fd [open $::accesslist a]
puts $acc_fd $msg
close $acc_fd
}
}
proc access:list {nick uhost hand chan text} {
set type [string tolower $text]
if {[regexp {(sop|aop)} $type]} {
# Remove old storage file
if {[file exists $::accesslist]} {file delete $::accesslist}
putserv "PRIVMSG $::chanserv :$type $chan list"
} else {
return
}
}
# ctrl:filter <string>
# Strip all control characters. Thanks to Ppslim.
proc ctrl:filter {str} {
regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str
return $str
}
Sergios: You may need to delete this line of codeSOp list for #ballarat
1 - almozo (Almozo@mctn1-8053.nb.aliant.net)
2 - Ricochet (~ricochet@82-37-208-102.cable.ubr06.dudl.blueyonder.co.uk)
End of list.
Code: Select all
bind notc - "*End of list.*" write:list
Code: Select all
if {[regexp {(sop|aop)} $type]} {
Code: Select all
if {[regexp {(sop|aop|hop|vop)} $type]} {
Code: Select all
[isbotnick $dest]
Code: Select all
# Name of the storage file for the access list.
set accesslist "accesslist.txt"
# Full name of channel services.
set chanserv "chanserv@Services.dal.net"
#################
# BIND commands #
#################
bind pub n list access:list
bind notc - "* list for *" write:list
bind notc - "*(*@*)*" write:list
bind notc - "*End of list.*" write:list
proc write:list {nick host hand arg {dest ""}} {
set msg [ctrl:filter $arg]
if {([isbotnick $dest]) && ([string equal $nick "ChanServ"])} {
# Create the storage file for appending.
set acc_fd [open $::accesslist a]
puts $acc_fd $msg
close $acc_fd
}
}
proc access:list {nick uhost hand chan text} {
set type [string tolower $text]
if {[regexp {(sop|aop)} $type]} {
# Remove old storage file
if {[file exists $::accesslist]} {file delete $::accesslist}
putserv "PRIVMSG $::chanserv :$type $chan list"
} else {
return
}
}
# ctrl:filter <string>
# Strip all control characters. Thanks to ppslim.
proc ctrl:filter {str} {
regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str
return $str
}