Hub owners active search script

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
FRANKE
Posts: 26
Joined: 2003-01-03 11:29
Location: Denmark
Contact:

Hub owners active search script

Post by FRANKE » 2003-01-18 19:13

Code: Select all

'Hub owner active search script by FRANKE aka [DK]FRANKE
'Version 0.00123 Build 12.4 Beta Alfa release 5
'January 19, 2003 01:04:25

'This script enables hubowners to do a active search on lan !
'For this script to work, you have to make the "right" settings 
'in your DC client, all the script does is forward the search string.

'PS: it works !   :]

'Thanks To HaArD for bringing my attention to this problem :)

Dim strName

Sub Main()
   strName = "ThisIsYourExactNameOnTheHub"
End Sub

Sub DataArival(curUser, sCurData)
   If Left(sCurData, 7) = "$Search" And Left(sCurData, 11) <> "$Search Hub" then
      If curUser.sName = strName then
         For Each User in ColUsers
            User.SendData CStr(sCurData)
         Next
      End If
   End If
End Sub

'No copyright, no GNU, no nothing
For the newest release of MulTiBoT visit www.cwain.dk

ender
Posts: 224
Joined: 2003-01-03 17:47

Re: Hub owners active search script

Post by ender » 2003-01-19 13:12

FRANKE wrote: For Each User in ColUsers
User.SendData CStr(sCurData)
Next
Wouldn't this be much faster:

Code: Select all

colUsers.SendToAll (sCurData)

FRANKE
Posts: 26
Joined: 2003-01-03 11:29
Location: Denmark
Contact:

Post by FRANKE » 2003-01-19 14:11

it properly would :)
For the newest release of MulTiBoT visit www.cwain.dk

ftp
Posts: 19
Joined: 2003-01-22 19:17
Location: Some where By the sea
Contact:

Sweet

Post by ftp » 2003-01-22 22:56

Thanks this script rocks!!!

Locked