proc addpre {nick host hand chan arg} {
set linkbotstatus [islinked "linkbot"]
 	set time [unixtime]
 	set title [lindex [split $arg] 0]
 	set rlssection [lindex [split $arg] 1]
 	if { [testcrap $nick $host $hand $chan $title] } { return 0 } 
 	sql selectdb pre
	if {[string tolower $chan] == "#chan1" || [string tolower $chan] == "#chan2" || [string tolower $chan] == "#chan3" || [string tolower $chan] == "#chan4"} {
 	set data [join [sql "SELECT * FROM pre WHERE title='$title' ORDER BY pretime DESC LIMIT 0, 1"]]
 	if {$data == ""} {
	sql query "INSERT IGNORE INTO pre (cat, title, pretime) VALUES ('$rlssection', '$title', '$time')"
	if {$linkbotstatus == 1} {

	putbot linkbot "botnet say #chan7 \0032\[\00310PRE\00313|\002\0039$rlssection\0032\002\]\=\[\00315$title\0032\]\003"
	}
  	}
 	}
}

##DONT COPY##