Yoinx commented on a Page, Xdcc Search Bot Script 2.8  -  Mar 05, 2006

if you change your current on text event in this to:

on :text::#: {
;# Checks if the channel is being indexed.
if ( $istok($hget(searchbot.settings,indexchan),$chan,44) ) {
;# Checks if the line is an actual xdcc ad. And that it is from a voice or higher.
if ( $chr(35) isin $strip($1-,burc)) && ( to request !isin $1- ) && ( xdcc send !isin $1- ) && ($nick($chan,$nick,vho~&)) && ($remove($strip($1,burc),$chr(35),$chr(60),$chr(62),$chr(171),$chr(187)) isnum ) {
;# Checks if the pack is #1
if ( $+($chr(35),1,$chr(32)) isin $strip($1-,burc)) {
;# Checks if the channel\'s index is made.
if ($hget($+(searchbot.,$chan))) {
;# Deletes all packs from a user when they list #1 to ensure old packs arent updated if they list fewer than before.
hdel -w $+(searchbot.,$chan) $+($nick,.)
;# Adds the new #1 pack.
sb.addpack $chan $nick $strip($remove($wildtok($1-,
#,1,32),$chr(91),$chr(93),$chr(171),$chr(187)),burc) $strip($1-,burc)
}
}
else {
;# Adds all packs after #1 for a user.
sb.addpack $chan $nick $strip($remove($wildtok($1-,
#*,1,32),$chr(91),$chr(93),$chr(171),$chr(187)),burc) $strip($1-,burc)
}
}
}
;List the search channels seperated by spaces, as shown
if ($istok(#channel1 #channel2 #channel3,$chan,32)) {
;# Search Events.
If ( $hget(searchbot.settings,enable) == 1 ) {
;# Searches all packs
if ( $istok($hget(searchbot.settings,trigger),$1,44) ) {
if ($2) {
sb.search all $nick $2-
}
else {
.notice $nick Please Specify A Search String.
}
halt
}
;# Searches offline packs
elseif ( $1 == !offline ) {
if ($2) {
sb.search offline $nick $2-
}
else {
.notice $nick Please Specify A Search String.
}
halt
}
;# Searches online packs
elseif ( $1 == !online ) {
if ($2) {
sb.search online $nick $2-
}
else {
.notice $nick Please Specify A Search String.
}
halt
}
}
}
}

it should accept the search commands in the channels after the commented line.

to get the results in notices, just go through the sb.search alias, and change all instances of .msg to .notice

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.