home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
CL15S1G.ZIP
/
LASTON13.ZIP
/
AUTOJOIN.PPS
< prev
next >
Wrap
Text File
|
1994-01-10
|
1KB
|
42 lines
STRING ConfNum
BYTE AutoJoin
INTEGER MaxConf
' See how many conferences there are.
MaxConf = READLINE("PCBOARD.DAT", 108)
' Get the position in U_CMNT1 for our ConfNum from the command line.
GETTOKEN AutoJoin
GETUSER
ConfNum = MID(U_CMNT1, AutoJoin, 4) ' Get the ConfNum
WHILE (TRUE) DO
ConfNum = TRIM(ConfNum, " ") ' Clean it up
PRINTLN
PRINTLN "To disable AutoJoin enter a blank"
PRINTLN
INPUTSTR "Conference to Join at Logon", ConfNum, DEFCOLOR(), 5, MASK_NUM()+" ", NEWLINE+FIELDLEN+GUIDE
ConfNum = RIGHT(" " + TRIM(ConfNum, " "), 4) ' Format it to 4 chars
IF (ConfNum < 0 | ConfNum => MaxConf) THEN ' Check range
OPTEXT ConfNum ' Tell them invalid
DISPTEXT 281, NEWLINE+BELL
CONTINUE ' and loop back
END IF
IF (U_EXPDATE > DATE()) THEN ' Check expiration
IF (CONFEXP(ConfNum)) BREAK ' Yes, ok if expreg
ELSE
IF (CONFREG(ConfNum)) BREAK ' No, ok if reg
END IF
OPTEXT ConfNum ' Tell them their
DISPTEXT 74, NEWLINE+BELL+LOGIT ' not registered!
END WHILE
' Built the new comment & write it
U_CMNT1 = LEFT(U_CMNT1, AutoJoin-1) + ConfNum + RIGHT(U_CMNT1, 27-AutoJoin)
PUTUSER
END