CN - (BaNNeD LiST) - GROUP1GROUP2
but i'd like it to output like this
CN - (BaNNeD LiST) - GROUP1 GROUP2 (with the space in between)
here's what i have so far
Code: Select all
# set the location of the banned.txt file
set banned_(txt) "/*****/*****/***/scripts/banned.txt"
#set the sitename
set site_(name) "CN"
#set the trigger
bind pub - !banned get:banned
bind pub - !addban get:addban
proc get:addban {nick uhost handle chan text} {
global banned_
if {$text == ""} {
return 0
}
set line_to_add $text
set fname $banned_(txt)
set fp [open $fname "a"]
puts $fp $line_to_add
close $fp
putquick "PRIVMSG $chan : \0034Ban Added Sucessfully\003"
}
proc get:banned {nick uhost handle chan arg} {
global banned_ site_
foreach line [split [exec cat $banned_(txt)] " "] {
putquick "PRIVMSG $chan :\00314$site_(name)\003 - \0034(BaNNeD LiST)\003 - $line"
}
}
putlog "COBRa Banned Script V1.0 Sucsesfully loaded"