home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************/
- /* */
- /* Demo of how chat mode can be automated when calling WINHOST. */
- /* */
- /* Copyright 1995 deltaComm Development, Inc. */
- /* */
- /****************************************************************/
-
- autochat()
- {
- int tr;
-
- tr=track("Sysop breaking in for a chat", 1); // Track string sent by host mode
-
- while (carrier()) // Keep going as long as on-line
- {
- terminal(); // Allow normal terminal activity
-
- if (track_hit(tr))
- chatmode(); // Initiate chatmode if the
- } // sysop's chat string detected
- track_free(tr); // Release tracking for other use
- }
-
- main()
- {
- autochat();
- }
-