diff --git a/src/main/lemondronor/circlebot.cljs b/src/main/lemondronor/circlebot.cljs index 249b627..d18ee96 100644 --- a/src/main/lemondronor/circlebot.cljs +++ b/src/main/lemondronor/circlebot.cljs @@ -277,6 +277,7 @@ [(str "[{registration}|{registration}, {type|a-an},|{militaryregistration}, a military aircraft,|" "{militaryregistration}, a military {type},|" "Aircraft with unknown registration, ICAO {icao}|" + "{type} with unknown registration, ICAO {icao}" "Military aircraft with unknown registration, ICAO {militaryicao}] " "?:[(callsign {callsign}) ]" "is circling over [{neighbourhood}, {locality}|{neighbourhood}, {county}|{locality}] " @@ -314,6 +315,8 @@ info (cond-> (-> ac (dissoc :history :type) (merge rev-props)) (:Type sqb) (assoc :type (:Type sqb)) + (as-> rec (and (nil? (:registration rec)) (:Registration sqb))) + (assoc :registration (:Registration sqb)) (:military? ac) (-> (assoc :militaryregistration (:registration ac) :militaryicao (:icao ac)))