***** * * **** * * * * ** *** *** * * * * *** * * ** * * * * ****** * * * * * * * * * * * * * * * * * * * * ***** * * *** * ** * * *** *** * * ** Vers.0.7 (c) by Rafael Metz All rights reserved. release 27.6.1991 This program is fully Public Domain Introduction I wrote this little utility to let a user know if his sysop is available for a chat or not. It`s my first utility for DLG Prf. the really best mailboxprogram on the Amiga :-). I`d like to write some more utilities for DLG so if have you any ideas please send me a mail. I hope you like this program... Installation ChatAvail is easy to install. The program itself could be installed everywhere on your harddisk. The configuration file which should be named "ChatAvail.cfg" should be placed in the DLGConfig:Misc/ di- rectory. I think it`s useful to start the program in the "Login.batch" so the user is informed just in the beginning of his logon... This is a example configuration file: ; *** ChatAvail sample config *** ; ; Sysop available times... ; each number is a hour of the day ; 0 = not available ; 1 = available ; make sure that you have 24 numbers... :-) ; GERMAN : 0 Uhr bis 23 Uhr ; ENGLISH: 12pm (1st number),1am to 12am (2nd to 12th number) and ; 1pm to 11pm (13th to 23rd number)...pooh :-) #AVAIL 010000011100001001100010 ; The config line for the available text. #TEXT1 2 The sysop is available for a chat ! Call him... ; The config line for the not available text. #TEXT2 5 I`m terribly sorry... Because of joining my holidays I`m not available for a chat. Contact my CoSysop by mail... The Sysop ; The config line for the holiday text. #HOLIDAY 2 I`m just enjoying my holidays :-) I think you have to write a mail... ; end of sample Commands in the configfile Command : #AVAIL Effect : This command tells ChatAvail when the sysop is available for a chat or not. Parameter : 24 numbers - each for a hour 0 = not available 1 = available Example : #AVAIL 10000001100010001111001 Command : #TEXT1 Effect : The text which will be displayed if the sysop is available for a chat. Parameter : number of lines which the text has Example : #TEXT1 2 Hi ! The sysop is available for a chat. Call him... Command : #TEXT2 Effect : The text which will be displayed if the sysop is not avail- able for a chat. Parameter : number of lines which the text has Example : #TEXT2 3 I`m sorry... The sysop isn`t available for a chat. But you can write him a mail... :-) Command : #HOLIDAY Effect : The text which will be displayed if the sysop is in his holidays... Parameter : number of lines which the text has Example : #HOLIDAY 2 I`m just enjoying my holidays :-) I think you have to write a mail... Starting ChatAvail ** IMPORTANT ** Set a stack for ChatAvail of about 10000 ! (I didn`t tested it out if less or more is useful...) ChatAvail has some powerful switches so reading the following is very important... [-o] ChatAvail has to be started with this switch in the BBS. [-y] This switch tells ChatAvail that you`re available for a chat. [-n] This switch tells ChatAvail that you aren`t available for a chat. (The Y and N switch don`t care the configuration file) [-t] This switch tells ChatAvail to use the Time Handler. That means that it uses the available times of the configuration file. [-c] Tells ChatAvail to use the settings set by the Y and N switch. [-s] Shows the actual status of the program and it`s settings. Time handler : Y/N Command : Active cmd. : [-h] Holiday mode switch. Is to be used when the sysop lies under palms in hawaii :-) Calling ChatAvail without any switches an online help will be displayed. Some examples: If you call ChatAvail with the -y switch and have already set the -t switch you`ll get the available status from the config file. Example: ChatAvail -n -c Effect : ChatAvail will show in the online mode that the sysop isn`t available - even if the config settings say that the sysop is available... So if you want to enable the config settings type "ChatAvail -c" and the Y/N status will be used... The avail status is subdivided in two parts. The time handled part and the Y/N handled part. Using ChatAvail time handled it refers on tha available times in the configuration file. The Y/N part uses the available status set by the Y and N switch. I hope you understood this...maybe in the beginning it`s a little bit complicated - but after a short time you`ll get it !!! Holiday mode ChatAvail has a special feature for the time when the sysop enjoys his holidays. So, when you`re joining your holidays call ChatAvail only with the -h switch. It will automatically display the "holiday-text" of the confi- guration file. I think you`re now able to run the program successfully... :-) Bugs, ideas, money, girls...contact me: ======================================= Rafael Metz Gottfried-Kinkel-Str. 23 6200 Wiesbaden, Germany, Europe, Earth Voice: +49-611-87126 BBS : +49-611-801981 (Infernal Lightning - 24h - V32 + V42) Fido : 2:248/34