home *** CD-ROM | disk | FTP | other *** search
- 'T:JOIN.EBS for CIX
- ' VA 4.10 release
-
- Declare Function UniqueFileName$
- Declare Function DownloadScratchpad(id As String, fname As String)
-
- 'T:FailedToJoinCC (subroutine) (CIX)
- 'Routine to get the names of moderators when attempting
- 'to join a Closed Conference and put them into a
- 'MailTo line in actions/information
- Sub FailedToJoinCC(topic as String)
- Dim fname as String, fnum as Integer
- Dim LineRead as String
- Dim Mods as String
- Dim MailToMods as String
- fname = UniqueFileName$()
- Capture CAPTURE_ON, fname
- Comms.Send "Show " & topic & "\r"
- WaitForPrompt "Prompt"
- Capture CAPTURE_OFF
- fnum = FreeFile
- Open fname for Input as #fnum
- Do While Not EOF(fnum)
- Line Input #fnum, LineRead
- If Left(LineRead, Len("Moderator (s)")) = "Moderator (s)" Then
- Mods = Right(LineRead,Len(LineRead)-15)
- MailToMods = ""
- Do While Instr(Mods," ") > 0
- MailToMods = MailToMods & ParseString(Mods," ")
- Loop
- MailToMods = MailToMods & Left(Mods, Len(Mods)-1)
- LogResult "You tried to join " & topic & " which is a closed conference,"
- LogResult "You should mail the moderators for admitance to this conference."
- LogResult "The moderators of this conference are as follows:"
- LogResult "mailto:" & MailToMods
- Terminal.Status "Joining Closed Conference " & topic & " failed."
- Goto GotMods
- End If
- Loop
- GotMods:
- Close fnum
- DeleteFile fname
- End Sub
-
-