global channels number find_ver botnick match_limit datafile stat_hits stat_found stat_not stat_notice stat_add stat_remove
if {$nick == $botnick} { return 0 }
foreach channels2 $channels {
if {[string tolower $channels2] == [string tolower $chan]} {
incr stat_notice 1
putserv "NOTICE $nick :Welcome to $chan, We have a @find`r (v. $find_ver) available for your use"
putserv "NOTICE $nick :just type '@find *what*ever*' in the channel, and I'll search for ya"
if {$number == 1} {
putserv "NOTICE $nick :-- I am currently tracking 1 entrie in my database, kinda low :("
}
if {$number <= 20 && $number != 1} {
putserv "NOTICE $nick :-- I am currently tracking $number entries in my database, kinda low :("
}
if {$number > 20} {
putserv "NOTICE $nick :-- I am currently tracking $number entries in my database"
}
putserv "NOTICE $nick :If you would like to add something, feel free, just type: /msg $botnick findadd <prog. name> \[description\] <where to get it at>"
}
}
}
bind dcc -|- find MC:find:dcc
bind dcc -|- search MC:find:dcc
proc MC:find:dcc {hand idx args} {
global number find_ver botnick match_limit datafile stat_hits stat_found stat_not stat_notice stat_add stat_remove
if {![file exists $datafile]} {
putdcc $idx "The Search file hasn't been created yet, sorry..."