Commit Graph

1573 Commits

Author SHA1 Message Date
Dirk Koopman
431fe129d4 Merge branch 'master' into anyevent
add 4mm band and latest prefix data

Conflicts:
	perl/Version.pm
2013-06-06 10:54:26 +01:00
Dirk Koopman
a7b139d6ce try again with cty2210 2012-05-31 17:08:50 +01:00
Dirk Koopman
2321d9d1b5 Add CTY2210 prefix changes 2012-05-31 09:49:01 +01:00
Dirk Koopman
996671c938 add cty2209 prefix changes 2012-05-29 11:37:57 +01:00
Dirk Koopman
96c0247dec add DXSql/Pg.pm and CTY-2206 Prefix changes 2012-04-10 14:50:26 +01:00
Dirk Koopman
e603d1e166 merge new wpxloc.raw + CTY2204 prefix changes
Conflicts:
	perl/Version.pm
2012-03-13 18:33:11 +00:00
Dirk Koopman
b2aa9a9839 add new wpxloc.raw + CTY2204 prefix changes 2012-03-13 18:31:26 +00:00
Dirk Koopman
0e896695f3 Merge branch 'master' into anyevent
Conflicts:
	perl/DXUser.pm
	perl/Version.pm

Add database handling changes from master
2012-03-12 23:44:36 +00:00
Dirk Koopman
427bd0165d alter index adding dbg statement order 2012-03-12 23:41:57 +00:00
Dirk Koopman
61885d0dba breath on database storage engines
Check that Mysql / sqlite databases work
Add ipaddr column to spot table if required
from now on add ip addresses to table if present (NULL otherwise)
2012-03-12 23:26:55 +00:00
Dirk Koopman
4e42369e6f fix UNIVERSAL typo in DXProt for pc34 2012-03-09 23:02:43 +00:00
Dirk Koopman
e1de45af27 fix (different) pc34 UNIVERSAL typo in DXProt 2012-03-09 22:51:01 +00:00
Dirk Koopman
a50f4484d8 fix DXUser UNIVERSAL::isa typo 2012-03-09 22:42:35 +00:00
Dirk Koopman
899ab26070 update version 2012-03-09 22:38:30 +00:00
Dirk Koopman
8423d02ad8 fix errors in DXUser deserialising Users 2012-03-09 22:37:50 +00:00
Dirk Koopman
6951e5c662 Merge PC34 unbless ref changes from main line
Conflicts:
	perl/DXUser.pm
2012-03-09 22:20:03 +00:00
Dirk Koopman
40953f6b16 add yet more changes in pc34 2012-03-09 22:15:30 +00:00
Dirk Koopman
dabf8497c5 try to fix unblessed refs in PC34s 2012-03-09 22:13:29 +00:00
Dirk Koopman
ec1b2a19fc Merge branch 'master' into anyevent
Conflicts:
	data/cty.dat
	data/prefix_data.pl
	perl/Version.pm
2012-02-15 15:47:15 +00:00
Dirk Koopman
7060bb41e3 update version 2012-02-15 15:44:26 +00:00
Dirk Koopman
4cb816f890 add CTY-2202 prefix data
and also fix mysql show tables
2012-02-15 15:43:50 +00:00
Dirk Koopman
85eea0e7a1 added support for subroutines in commands
Traditionally, a command is a piece of perl that is a simple
in line lump of code e.g (blank.pl):

		my ($self, $line) = @_;
		my $lines = 1;
		my $data = ' ';
		my @f = split /\s+/, $line;
		if (@f && $f[0] !~ /^\d+$/) {
			$data = shift @f;
			$data = $data x int(($self->width-1) / length($data));
			$data .= substr $data, 0, int(($self->width-1) % length($data))
		}
		if (@f && $f[0] =~ /^\d+$/) {
			$lines = shift @f;
			$lines = 9 if $lines > 9;
			$lines = 1 if $lines < 1;
		}
		my @out;
		push @out, $data for (1..$lines);
		return (1, @out);

It is now possible to have a 'handler' and any other code you like in
a command file, for instance (again blank.pl):

sub this {}

sub that {}

sub another {}

sub handle
{
		my ($self, $line) = @_;
		my $lines = 1;
		my $data = ' ';
		my @f = split /\s+/, $line;
		if (@f && $f[0] !~ /^\d+$/) {
			$data = shift @f;
			$data = $data x int(($self->width-1) / length($data));
			$data .= substr $data, 0, int(($self->width-1) % length($data))
		}
		if (@f && $f[0] =~ /^\d+$/) {
			$lines = shift @f;
			$lines = 9 if $lines > 9;
			$lines = 1 if $lines < 1;
		}
		my @out;
		push @out, $data for (1..$lines);
		return (1, @out);
}

The 'sub handle' being the cue that distiguishes one form from the other.

The first form has the 'sub handle { <code> }' wrapped around it so, internally
they are treated the same. Each command is placed in its own DXCommandmode sub
package with a standard set of packages "use"d in front of it.

For now (at least) any functions you declare are just that. "$self" is a DXCommandmode
not a blessed reference to this command's full package name, you cannot use things like

$self->this() or $self->that()

they must be called as local functions.

This may change in the future.
2012-01-29 18:02:02 +00:00
Dirk Koopman
9ab4359792 er.. actually generate the CTY-2201 prefixes 2012-01-29 10:41:58 +00:00
Dirk Koopman
449de811da add CTY-2201 prefixes 2012-01-29 10:41:23 +00:00
Dirk Koopman
34b7ed3f88 put back some command debugging
to do with cached/uncached commands
2012-01-17 21:48:36 +00:00
Dirk Koopman
281b5d6bab various small speed up changes 2012-01-05 15:19:44 +00:00
Dirk Koopman
fb8e4bcdc4 fix export_user and create_sysop.pl 2012-01-02 20:23:01 +00:00
Dirk Koopman
955a8e0026 make DXUser use JSON::XS and Sqlite
We are starting the removal of DB_File out of the product.
2012-01-02 18:07:30 +00:00
Dirk Koopman
da103adfdd add logging to show/dxsql
this is to find out whether anyone is using this command.
2011-12-27 15:28:24 +00:00
Dirk Koopman
209156e38a make sh/contest async 2011-12-27 15:19:34 +00:00
Dirk Koopman
ed2d469812 now with async sh/qrz!
There is a new DXCommandmode::http_get() async http get routine
that is callable from a command such as sh/qrz.
2011-12-27 13:59:32 +00:00
Dirk Koopman
370d3563d7 fix error message on disconnect from peer 2011-12-23 13:06:31 +00:00
Dirk Koopman
a22dbff21b fix disconnect from peer 2011-12-23 11:23:15 +00:00
Dirk Koopman
0702d383db normalise peerhost on outgoing connects 2011-12-22 23:51:10 +00:00
Dirk Koopman
a60f14f41c fix (remove) peerhost on connect error 2011-12-22 23:13:46 +00:00
Dirk Koopman
7f629e3e56 upissue version 2011-12-22 23:03:06 +00:00
Dirk Koopman
bb0a21bec3 fix echoing (?) 2011-12-22 23:02:35 +00:00
Dirk Koopman
6e858487b4 fix console.pl so it ends gracefully 2011-12-22 22:42:15 +00:00
Dirk Koopman
bbc51ffb41 Got something basically working
Need to sort out shutdown and related things
2011-12-22 22:06:04 +00:00
Dirk Koopman
38aa5af305 WIP AnyEvent version 2011-12-22 20:41:45 +00:00
Dirk Koopman
d17f05b19f start of AnyEvent conversion 2011-12-21 22:25:16 +00:00
Dirk Koopman
80ef0d854f add CTY2118 changes 2011-12-21 13:35:57 +00:00
Dirk Koopman
84fb1f6e70 fix barf on encountering an empty lockfile 2011-12-20 19:47:28 +00:00
Dirk Koopman
3c2ea668af fix shutdown() error and add CTY2117 2011-11-29 18:50:47 +00:00
Dirk Koopman
192c703baf added cty2116 changes with fixed version 2011-11-05 17:20:43 +00:00
Dirk Koopman
842017697f Merge branch 'master' of ssh://server/scm/spider
Conflicts:
	Changes
	data/cty.dat
	data/prefix_data.pl
2011-11-04 18:06:34 +00:00
Dirk Koopman
9bbfe9a2d3 add CTY2115 prefixes 2011-11-04 18:00:03 +00:00
Dirk Koopman
4ab258ae11 add CTY2113 prefixes 2011-10-25 15:23:41 +01:00
Dirk Koopman
6262a02552 change internal 40m band areas 2011-10-02 13:18:15 +01:00
Dirk Koopman
258f3e1de9 add CTY2110 changes 2011-07-25 21:14:04 +01:00