File: connect.mac

package info (click to toggle)
linpac 0.16pre3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,328 kB
  • ctags: 2,582
  • sloc: cpp: 16,514; sh: 7,991; ansic: 4,061; makefile: 211; perl: 101
file content (32 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
:macro connect
;; This macro implements the Connect command

;; Determine the port name and the first callsign
if %(strpos ":" "%1") == -1
  set PORT ""
  set CALL "%1"
else
  set PORT %(strleft %(strpos ":" "%1") "%1")
  set CALL %(strright %[%(strlen %1) - %(strpos ":" "%1") - 1] %1)
endif

set CALL %(upcase %CALL)

;;========================================================================
;; Following section can contain various conditions for connecting some
;; stations some special way
;;========================================================================

;;An example of connecting the BBS via the node that doesn't work as
;;digipeater
if %CALL == OK0PBB
  pconnect CZ0AAA
  waitfor %(isconn) == 1
  echo c OK0PBB
  return
endif

;;========================================================================

;;Default action
pconnect %*