@@ -100,7 +100,7 @@ def work(line)
# so it only reaches the issuer of REQ_BC
put_to(from, "BC_ID", "#{bcid} for: #{network},#{freqname},#{source}")
- $broadcasts[bcid] = from
+ #$broadcasts[bcid] = from
finalmessage = "%s %s,%s,%s,'%s','%s'" % [bcid, network, freqname, source, nickname, text]
put_not_to(from, "BC", finalmessage)
@@ -364,7 +364,8 @@ def main
source = $3
nickname = $4
text = $5
-
+
if not network =~ /^(QWalt)|(QDEV)/
put_log "SYS Network name #{network} is unknown: QWalt or QDEV allowed."
error = 1
@@ -398,7 +399,7 @@ def main
if error == 0
payload = "%s,%s,%s,'%s','%s'" % [network, freqname, source, nickname, text]
- send_cmd("BC", payload)
+ send_cmd(cmd, payload)
# send REQ_BC to the corresponding role.
end