Paul Klumpp 12 gadi atpakaļ
vecāks
revīzija
80050c8300
2 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 1 1
      central.rb
  2. 3 2
      connection.rb

+ 1 - 1
central.rb

@@ -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)

+ 3 - 2
connection.rb

@@ -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