slightly more elegant version with error message
[spider.git] / Changes
1 04Nov99=======================================================================
2 1. Removed ~ from the end of the PC18.
3 2. Removed a hangover from duff character checking in cluster.pl
4 3. Stop PC frames that are to be routed, being routed back to themselves.
5 03Nov99=======================================================================
6 1. Simplified command caching so it uses anonymous subroutines, you should
7 also get error messages back on the console now when developing.
8 2. Allow locally connected AK1A clusters that for some obscure reason don't
9 issue PC19s to still appear as connected and allow them to acquire users.
10 31Oct99=======================================================================
11 1. updated Minimuf.pm and show/muf.pl to the fixed versions sent to me by
12 Steve Franke K9AN. 
13 2. Made set/badnodes work, added show/badnodes. This is an interim fix until
14 input spot filtering works.
15 24Oct99=======================================================================
16 1. fixed announces so that nodes only get one of them (not two).
17 2. Altered the select timeouts to prevent apparent excessive CPU usage on
18 multiprocessor machines (or at least that is what seems to be the trouble
19 here). 
20 22Oct99=======================================================================
21 1. allow filter CALLSIGNS to be in upper or lower case.
22 2. create the concept of input and output filters, input filters are of the 
23 form "in_$call.pl" eg: "in_g1tlh.pl" (or "in_G1TLH.pl"), output filters are 
24 "g1tlh.pl" (or "G1TLH.pl").
25 3. all users can now filter on spots, ann and wwv (assuming the sysop has set
26 the filters up - still no user creatable filters. Nodes can filter on both
27 input for announces and output for all of these. I would recommend setting 
28 up a few filters that are likely to be wanted and then symlinking callsigns
29 to them as you get requests.
30 4. added callsign and length of history/position of screen stats to console.
31 If you want to change the colour of the callsign you will need to copy the
32 Console.pm to your /spider/local directory and change the $mycallcolor equate.
33 21Oct99=======================================================================
34 1. fixed reply so that reply b or reply nop generate a bulletin with the 
35 correct address.
36 2. implemented sh/muf command.
37 3. reduced privilege of catchup and uncatchup to 5. This so that, suitably
38 privileged, nodes that occasionally link can rcmd a "catchup <nodecall> all"
39 to the node they are connecting to and thus prevent a large tranche of, 
40 potentially duplicate, mail. This isn't an issue for DXSpider, but may be
41 an issue for any AK1A clusters you are connected to.
42 20Oct99=======================================================================
43 1. Translated all the subroutines of minimuf into perl as Minimuf.pm
44 2. Limited the length of an ANN that is saved for de-duping to $pc12_dup_lth
45 (def 72)
46 3. help command should now return stuff that you expect.
47 4. reduced necessary privilege to use 'MSG' command to 6.
48 5. Correct the count of spots and wwv for a merge.
49 6. Allow decodes of DK0WCY-3 WWV data beacon announces
50 7. rewrote send so that an SB doesn't send a buckshee bull to NOPRIVATE!
51 8. Changed default colouration on console so that all spots >= 50Mhz are red
52 9. Fixed init command so that PC21s are sent down non-initted channels
53 10. Allow forwarding of unknown private mail. This means that you can set up
54 forwarding of 'foreign' mail across to and by gateways using the same 
55 mechanism as bulletins (/spider/msg/forward.pl).
56 11. Allow line wrapping on the console (G0RDI, G0VGS et al).
57 18Oct99=======================================================================
58 1. changed help command so that it works correctly with multiple title lines.
59 2. added to address to the list of things a message checks to see whether it
60 is a duplicate (how on earth did it take _this_ long to find this one?).
61 3. Changes S CC so that the callsign it says it has sent to is the real one
62 (request from G8TIC)
63 21Sep99=======================================================================
64 1. allow zero messages to be stored (request from G4PDQ)
65 2. make DX more flexible and change spotter syntax to be consistant with
66 sh/dx (request from K9AN)
67 30Aug99=======================================================================
68 1. remove -@ as well as \d from SSIDs for spots
69 2. remove WEB and/or NET from the front or rear of callsigns in Prefix.pm
70 29Aug99=======================================================================
71 1. Added msg command to allow the changing of To, From, Subject and so on the
72 messages. This seems particularly important just now as a whole raft of G3's
73 seem to be putting out non private bulls to callsigns.
74 2. While I am at set messages to TO fields that appear to be users to private
75 if they have been sent as bulls.
76 3. Add DISTROs, if a callsign field appears in /spider/msg/distro in upper
77 use that as a list of callsigns to send further. Note this is potentially
78 recursive as callsigns in a distro can be distros.
79 25Aug99=======================================================================
80 1. check the date of a WWV much more carefully.
81 24Aug99=======================================================================
82 1. Prevented spots with lowercase callsigns being forwarded. This opens a
83 much bigger can of worms which I shall have to address later.
84 17Aug99=======================================================================
85 1. all protocol except PC29 containing %XX characters will be dumped.
86 2. Changed console.pl so that if you start typing it moves the top window
87 back to the bottom.
88 19Jul99=======================================================================
89 1. Added iota and qra clauses to sh/dx as well, these take optional arguments
90 and will look for the appropriate strings.
91 17Jul99=======================================================================
92 1. Started database integration.
93 2. added qsl clause to sh/dx that searches for qsl or via in the dx info
94 16Jul99=======================================================================
95 1. drop frames with 'illegal' characters in them (but pass frames with 
96 embedded %XX characters).
97 15Jul99=======================================================================
98 1. Changed grepdbg to accept a regexp. More useful (to me anyway).
99 2. Altered init command so that it doesn't send PC21s down the initted 
100 channel.
101 10Jul99=======================================================================
102 1. added an explicit disconnect from my side for already connected calls. This
103 appears to have fixed a problem where if two consoles connect at the same time
104 with the same (sysop?) callsign the cluster would stop.
105 2. added some debugging in the Message handler to allow more state to be seen.
106 3. Message handler now seems to work better for longer and doesn't spew out
107 PC42 aborts with quite such gay abandon.
108 05Jul99=======================================================================
109 1. added stat/msg and stat/cluster commands to allow me to poke about inside
110 the msg and cluster node tables.
111 04Jul99=======================================================================
112 1. removed silly 'new message has arrived' to connected nodes 
113 2. added a ! command to the console.pl program; works like the bash shell.
114 01Jul99=======================================================================
115 1. Altered priv to 5 for connect.pl to match disconnect for nodes
116 29Jun99=======================================================================
117 1. fixed merge command that I broke.
118 2. added some randomness in waittimes for aborted outgoing messages 
119 3. Message Queuing now only occurs every 5 minutes (configurable if anyone 
120 wants to write the command for doing it) and on receipt of a PC16. This is
121 a further attempt at sorting the crossing of messages!
122 4. a PC33 will cause another attempt at queuing. If you are on a roll, keep
123 going!
124 28Jun99=======================================================================
125 1. console.pl now works with history and editting.
126 2. added scrolling to stuff sent by the cluster.
127 3. added colours to things.
128 27Jun99=======================================================================
129 1. added WWV filtering
130 2. added timeouts to for forwarding Messages, also added a waiting time for
131 failed (stalled) outgoing messages.
132 3. Incoming messages will now have priority over outgoing messages to the
133 same node.
134 4. Added 'catchup' command which will 'catchup' messages to date for a node. 
135 This means that when you start forwarding to a node, it doesn't get all the
136 messages queued up that are probably old.
137 5. added 'uncatchup' which does the opposite of the above.
138 6. fixed kill full and PC49 handling so that it actually works.
139 7. Fixed local aliases so they add to the front of the standard ones. This
140 means you only need to add your specials or override the system ones you need
141 to.
142 21Jun99=======================================================================
143 1. changed regex for cluster->client msgs so that strings like |---| are no
144 longer ignored.
145 20Jun99=======================================================================
146 1. prevented a merge to myself (causes a loop)
147 18Jun99=======================================================================
148 1. fixed a problem with DXLogPrint repeating log entries.
149 2. altered the permissions on disconnnect so that priv 5 users can disconnect
150 clusters, but still require priv 8 to disconnect users.
151 3. made sure that an incoming PC18 clears out all the cluster info for
152 that channel before re-initialising.
153 4. add init command.
154 5. disconnect users before nodess on shutdown
155 15Jun99=======================================================================
156 1. added grepdbg program (so you can search your debug files and get times
157 and dates of incidents).
158 2. Moved DXVars.pm to DXVars.pm.issue to force new users to cp it to their
159 local directory.
160 3. added $allowzero to DXProt to allow thru PC19s with zero protocol versions.
161 14Jun99=======================================================================
162 1. changed IO::File in help and apropos to IO::File
163 2. added a check for isa('DXNode') for PC50s
164 08Jun99=======================================================================
165 1. Started work on the curses based operator console.
166 03Jun99=======================================================================
167 1. cluster seems to have a memory leak, put DESTROY functions in where 
168 appropriate.
169 2. try to make sure that PC21 commands are not issued inappropriately and
170 also reformat PC19 for onward broadcast so that nodes coming in on loops are
171 dropped from those broadcasts.
172 3. make sure PC16,17,19,21 doen't affect locally connected nodes.
173 4. Changed all instances of FileHandle to IO::File.
174 01Jun99=======================================================================
175 1. removed a output of an unwanted pc21 for isolated nodes
176 31May99=======================================================================
177 1. Added checking for PC16,17,19 and 21 to make sure that they come in from
178 the channels that they are supposed to.
179 2. Pass the RCMDing node's priv level to the command (rather than the 
180 connecting node's privilege level).
181 3. Pass thru merge requests for other nodes.
182 4. Removed a warning from client.pl
183 5. routed external DB commands and drop them (for now) locally
184 6. routed external mail commands (ie those addressed elsewhere)
185 7. routed external PC26/27 lines 
186 25May99=======================================================================
187 1. try to make the lastin value correct even for local users
188 2. got rid of the stupid bug that failed to print out the offline message
189 but put a "*main::STDOUTmain" for every line of that message instead.
190 3. Ported to 5.00503 (well actually just installed it and it just runs). 
191 4. Added who command
192 23May99=======================================================================
193 1. Got rid of some of the useless error messages on global destruction when
194 quiting a program.
195 2. Stuck -w back on client.pl
196 23May99=======================================================================
197 1. tried to change connection to raw mode for cluster connections
198 2. sh/c and sh/u are now sorted in alphabetical order
199 3. Limited the number of queued dx spots when composing messages to 20 (the 
200 oldest one is lost for every one added above 20).
201 4. Added generalised shell globbing everywhere I think it is useful, including
202 sh/dx, dir, sh/files etc
203 5. Made dir more compatible with ak1a and added 'to' and 'from' call searching
204 it should now do everything that ak1a does except counts.
205 6. added similar functionality to kill command so that you can kill ranges, to
206 and from callsigns etc.
207 22May99=======================================================================
208 1. added check for -1 from Date::Parse and return undef for out of range dates
209 2. added show/files and type commands
210 21May99=======================================================================
211 1. made set/nodx work again.
212 2. made dx stuff queue nicely again when sending messages.
213 18May99=======================================================================
214 1. Added announce dup checking.
215 2. Added system announce filtering.
216 08May99=======================================================================
217 1. Added a bit more checking to the rcmd thing to make more sure that this
218 rcmd isn't coming from an imposter. Not possible to prevent everything 
219 ofcourse, just make it a bit harder.
220 2. altered set/lockout and set/privilege so that they can't executed remotely.
221 3. Added some code to reject rubbish (with invalid binary characters) protocol
222 or user lines as input.
223 4. prevented PC command being executed remotely :-)
224 05May99=======================================================================
225 1. change the connection overlap from an abort to a disconnect.
226 02May99=======================================================================
227 1. Added the mechanism for doing user spot filtering for spots in the cluster 
228 (no user control just yet - but sysops can do it).
229 2. Fixed problem with nodes sending out the node lists of isolated nodes.
230 30Apr99=======================================================================
231 1. Try to make it even more AK1A friendly by putting the node list out in the
232 'correct' order.
233 2. added code so that local users and commands go to all connected nodes 
234 INCLUDING the isolated ones.
235 26Apr99=======================================================================
236 1. added set/user command as a hack, please use this with care, there is
237 very little checking.
238 2. added export_opernam.pl which is a basic reader of AK1A opernam.dat files
239 to stdout
240 25Apr99=======================================================================
241 1. Fixed problem with filtered spots not coming out.
242 2. Added the possibility of filtering on channel callsign
243 20Apr99=======================================================================
244 1. altered order of undefing and closing of user file in an attempt to make 
245 corruptions/missing users less likely.
246 2. made messages that are addressed to the node call appear to the alias call
247 3. check dates much more rigourously.
248 4. ignore SIGTERM and SIGINT during shutdown of the cluster
249 15Mar99=======================================================================
250 1. added $actiondata to filter line to allow per action data such as no of hops
251 2. fixed a silly problem in talk for non-existant callsigns
252 3. Added sysop command
253 02Mar99========================================================================
254 1. Changed DXUser so that it uses a homemade import/export hash routine 
255 2. DXUser now uses a DB_BTREE file
256 3. Added export_users.pl, import_users.pl and convert_users.pl
257 25Feb99========================================================================
258 1. added NL language stuff.
259 2. added set/language
260 21Feb99========================================================================
261 1. Allowed multiple 'on <freq>' for show/dx
262 2. Made sure the 'on 20m/ssb' thing worked (also 'on hf/cw').
263 3. first cut of the Filtering code, no user commands yet but the file
264 format is defined and manually added filters should work for spots
265 17Feb99========================================================================
266 1. added export_user.pl to export user files (for interest and safety)
267 2. changed DXUser::init to allow O_RDONLY access which may limit the number
268 of coredumps G0RDI seems to get.
269 15Feb99========================================================================
270 1. Added msg forwarding code which uses $main::root/msg/forward.pl.
271 14Feb99========================================================================
272 1. Changed A & K in WWV to be the other way around (I am told by G3IOR that
273 this will mean that we won't have pole to pole aurora nor all the power lines
274 overloading everywhere as well as a result of having values of K > 10).
275 2. allow the '~' character in message bodies.
276 3. Moved $main::data/badmsg.pl to $main::root/msg/badmsg.pl.
277 11Feb99========================================================================
278 1. Fixed a problem with isolated nodes' configurations being sent on sending 
279 local configs to new connections.
280 08Feb99========================================================================
281 1. added a $SIG{ALRM} in the client to actually catch the alarm when it goes 
282 off which means that the netrom/ax25 call programs terminate properly (and not
283 loop as fast as their little legs can paddle, soaking up CPU time).
284 2. Implemented read receipts as an especial request from G4PDQ.
285 3. Fiddled with DXUser a bit to see whether I can stop it core dumping on new
286 users in PC16s on G0RDI's machine.
287 4. Added E4 (Palestine) to Prefix data.
288 30Jan99========================================================================
289 1. Some of the dates we get can cause crashes, tried to make it more robust (oh
290 and Y2K compliant)
291 2. PC16 seem to come in with missing callsigns from somewhere
292 3. added $main::data/baddx.pl which prevents callsigns that are in the list being
293 a) forwarded b) stored and c) (except for the originator, if local) being
294 displayed locally.
295 4. added $main::data/badmsg.pl which deletes any messages whose TO address is
296 in this list (this is largely for european sensibilities). 
297 18Jan99========================================================================
298 1. added present(),presentish() and disconnect() to DXCron so that you can see 
299 (easily) if a station is on the cluster anywhere and also disconnect them
300 locally. 
301 2. added rcmd() to DXCron so you can send an rcmd to someone else from crontab.
302 3. <embarrassment>Fixed create_sysop.pl so that longitude is spelt correctly
303 there as well</embarrassment> made the update work properly. NOTE create_sysop
304 will only do what you expect if all cluster.pl and client.pl programs are 
305 stopped.
306 4. DXCron wasn't reading in reliably on startup, this is now (hopefully) fixed.
307 the -M semantics are rather strange!
308 5. The -w switch is now standard on cluster.pl
309 6. Added last_connect() which gives the last connect time of a user (or now
310 if connected).
311 7. Added present_on(call, node) and presentish_on(ditto) which returns true if 
312 the call is connected to the node.
313 8. incoming messages for users will now send a 'new message' message (instead
314 of merely generating the message)[who wrote this rubbish?].
315 9. Hooked $SIG{__WARN__} and $SIG{__DIE__} so we store these nasty error 
316 messages.
317 10. Print the no of users on restricted protocol links if we have had PC50
318 11. Had a go at making the sh/cl stats more accurate.
319 12. PC11 was trying to call Local::spot1 instead of Local::spot, no warning 
320 previously.
321 13. Added a simple lockfile to prevent more than one cluster running at a time
322 17Jan99========================================================================
323 1. fixed some permission problems on DXLog.
324 2. There is a circumstance in DXMsg which caused the cluster to stop on an 
325 null ref pointer which I can't get to the bottom of but have bandaided out 
326 for now.
327 3. Started filter and Database code.
328 4. Upper cased all the TO callsigns for sending to more than one station in
329 messages.
330 07Jan99========================================================================
331 1. Fixed Geomag after emacs reformatted it wrong so sh/wwv works again.
332 2. Added more range checking in WWV spots (they really are a heap of ...)
333 3. Changed create_sysop.pl so that you can update as well as create the user 
334 file
335 4. Remove spotter's SSID from WWV spots
336 06Jan99========================================================================
337 1. Do some range checking for spots and WWV in the future (got a WWV for Oct 
338 2034 whhich caused a bit of confusion!)
339 2. Make WWV spots broadcast them to the users! (as opposed to merely storing 
340 them)(thank you G0RDI).
341 3. Allow users to do show/announce (thank you JE1SGH).
342 4. Delay broadcasts to users if they are not in a 'prompt' state (means you can
343 add messages and see what you are doing on a busy system)
344 5. Made set/unset dx,ann,wx,talk,wwv do what is expected
345 6. added set/sys_location and set/set_qra to set the cluster lat/long and qra
346 7. New messages will now be announced on logon (if there are any)
347 03Jan99========================================================================
348 1. Upped the version no !!!!
349 2. made the DXProtocol routines much less sensitive to '~' characters (JE1SGH)
350 3. added '^' -> ':' conversions on ann, talk and dx commands
351 4. You can now send messages containing blank lines.
352 5. Fixed merge command problem reported by G0RDI
353 28Dec98========================================================================
354 1. Crossed fingers, got rid of the instabilities caused by execing programs
355 at vast speed (reduced it significantly anyway).
356 2. Personals will now move if homenode is known.
357 3. Added Local.pm for doing local specials
358 27Dec98========================================================================
359 1. Various detail changes to remove some more warning with -w on
360 2. Added DXCron handling - you can do crontabs now.
361 3. Added show/program command so you can see where it is loading your .pm files
362 from.
363 4. Added pc26/27 replies to locally connected cluster's merge (pc25) requests
364 5. Added spotters DXCC and original cluster to Spot data files.
365 23Dec98========================================================================
366 1. Reindented various things
367 2. Added missing $main::mycall on the end of outgoing PC11s (!)
368 3. Check that PC16/17 node calls really are nodes (AFAIAC).
369 22Dec98========================================================================
370 1. Added brackets round callsign if not here for prompt
371 2. Added Iain's set/password routine
372 3. Fixed sh/dx problems (the xemacs indent region messed Spot.pm up!)
373 4. Issued 1.15
374 21Dec98============= late! ====================================================
375 1. fixed problem with missing DXDebug in DXProt.
376 2. Fixed DXDebug so that it actually works as advertised with and without 
377 trailing \n. 
378 3. Added deduping of WWV spots as well (at for date,time,sfi,k and i) dups
379 4. Replaced the 0 in "02-Dec-1998" with ' ' so it reads " 2-Dec-1998", it seems
380 hard to credit it but some 'programs' out there that connect to clusters have
381 problems with the leading '0'!
382 5. In the same vain, included a strictly AK1A compatible sh/heading, apparently
383 this is necessary for the same reason as 4.
384 6. Started contrib tree stored the old show/heading in contrib/g0rdi/show.
385 7. Because I now correctly dedupe spots and wwv (there's a hostage to fortune..)
386 I have added a merge command. 
387 21Dec98========================================================================
388 1. Added "issue" to the client program for 'login' connections
389 2. Added more docs for client program.
390 3. Fixed problem introduced in 1.12 where a connect locally with a callsign of
391 someone connected remotely would stop the cluster.
392 4. issue release 1.13
393 20Dec98========================================================================
394 1. Removed all the warnings I get with perl -w (at least for just starting the
395 cluster and running a few commands).
396 2. Added per node hop control.
397 3. Added some docs on how to use it and isolation
398 4. Made talk command more intelligent in that if the user isn't seen and the
399 user's last node is visible it tries the talk anyway.
400 19Dec98========================================================================
401 1. Fixed problems with sh/rcmd (talk/ann/log) with a callsign as argument and
402 also made what G0RDI wanted work as well!
403 2. Added isolate flag to allow isolation of different networks at a gateway.
404 3. Changed make Makefile.PL to perl Makefile.PL in instructions
405 4. Copied latest instructions to html directory
406 5. Had another attempt at making clients disconnect without hanging everytime.
407 6. Changed msg queuing semantics so that the system routes on exact callsign.
408 7. Changed the protocol version so that it increments with the DXSpider version.
409 14Dec98========================================================================
410 1. Made the telnet thing work a bit better. It still will not work reliably to
411 a real telnetd on port 23.
412 2. Allowed network logins on client by specifying login instead of call.
413 3. made msg handling more robust (PC30 with unknown streams cause PC42), queueing
414 is only done on channels that are in state 'normal'.
415 4. Added pc command which takes a callsign and some text and sends it without
416 mods to the callsign, useful for sending manual PC protocol to unstick things.
417 Also for sending anonymous messages to online users.
418 5. Stopped duplicate messages being stored (it receives them and then bins them)
419 6. Implemented PC49 delete/full from outside (kill full on the inside)
420 7. Implemented the client command in connect scripts so that you can have 
421 different scripts for the same callsign.
422 8. Added sh/wwv command
423 13Dec98========================================================================
424 1. Fixed VS6 lat/long in prefix_data and wpxloc.raw
425 2. Sorted out last in times for remote users
426 3. editted and substitued G0RDI's version of the install instructions over
427 mine in spider/html
428 4. fixed telnet connections
429 5. added connect instructions to html tree.
430 6. Added some more help
431 7. Upissued version
432 12Dec98========================================================================
433 1. Incorporated sh/st, (un)set/lockout, forward/opername from Iain G0RDI
434 2. Added group handling with (un)set/group, show/group. This allows arbitrary
435 groups to be formed (for ann/<group> for example) and is also used to 'filter' 
436 spots, announces, wwvs etc into groups of cluster nodes (useful for creating 
437 disjoint cluster networks)
438 3. **** CHANGE mylongtitude to mylongitude in DXVars.pm ****
439 4. Altered QRA locator routines so they work correctly!
440 5. Fixed all commands that had the wrong mylat(itude) and mylong(itude) names
441 in.
442 07Dec98========================================================================
443 1. Added set/name, set/qra, set/location, set/qth, set/homenode, set/bbs, 
444 set/email
445 2. changed the Msg socket close to a shutdown (hopefully more reliable), this 
446 should stop clients hanging on exit.
447 3. Added Alias support for help
448 4. Added lltos and stoll routines to DXBearing
449 5. Added auto prompting for name, qth, location and homenode if any of these
450 aren't known.
451 06Dec98========================================================================
452 1. Fixed DXBearing::is_qra so that it correctly detects full QRA locators
453 2. Added sh/qra for doing locator distances and bearings
454 3. Added some stuff to Notes.txt on hints for command writers
455 4. Changed help system to use just one file per language
456 5. Started adding more help
457 6. Fixed 24Mhz band limits
458 7. Added apropos command and lots of new help text
459 05Dec98========================================================================
460 1. Added sh/heading and QRA locator calculation stuff
461 04Dec98========================================================================
462 1. Started Changes file
463 2. Added load/cmd_cache.pl to clear cmd cache shortcuts (use this if cluster.pl
464 get confused about where it is getting its commands from eg if you have
465 removed a file from local_cmd 'cos you want to go back to standard one)
466 3. Fixed bull handling at least to the extent that it stores them and
467 doesn't mess up the normal directory handling.
468 4. Fixed the unset/debug command so that it actually does the job!
469 5. Removed the middle line 'written in perl for unix' from show/version.pl