Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Comments: 424
- mIRC Snippet: Xdcc Search Bot Script 2.8
- Posted on Mar 5, 2006 10:32 am 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
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment