A rules 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

JackDanuls
Posts: 10
Joined: 2003-06-06 03:50

A rules script.

Post by JackDanuls » 2003-06-06 03:54

I am very new to running a hub. I want to be able to have hub rules displayed when some one logs into my hub. Could some one please point me to a script for this?

Thank you
JackDanuls

Paul_Don
Posts: 146
Joined: 2003-01-29 11:41
Location: uk

Post by Paul_Don » 2003-06-06 17:26

Code: Select all


Dim sBotName

Sub Main()
sBotName="bot-name"
frmHub.RegisterBotName(CStr(sBotName))
End Sub


Sub NewUserConnected(curUser)
 curUser.PrivateMessage CStr(sBotName), " "&_
  vbCrLf & +vbTab+vbTab+" "& _
   vbCrLf & +vbTab+vbTab+" •  Rule 1"& _
   vbCrLf & +vbTab+vbTab+" •  Rule 2"& _
   vbCrLf & +vbTab+vbTab+" •  Rule 3"& _
   vbCrLf & +vbTab+vbTab+" •  Rule 4"& _
   vbCrLf & +vbTab+vbTab+" •  Rule 5"&_
   vbCrLf & +vbTab+vbTab+" •  Rule 6"& _
   vbCrLf & +vbTab+vbTab+" •  Rule 7"&_
   vbCrLf & +vbTab+vbTab+" •  Rule 8 "&_
   vbCrLf & +vbTab+vbTab+" "
 End Sub
 
Sub OpConnected(curUser)
   Call NewUserConnected(curUser)
End Sub



Too add more rules, copy and paste where it says rule 8 then past below number 8.

the last line must end with vbCrLf & +vbTab+vbTab+" " with no " &_ "

JackDanuls
Posts: 10
Joined: 2003-06-06 03:50

Post by JackDanuls » 2003-06-06 17:31

Thanks. So Exactly where do I insert the rules?

Also is there a script to limit the hub to DC and DC++ only?

Who is online

Users browsing this forum: Google [Bot] and 0 guests