$main::build += $VERSION;
$main::branch += $BRANCH;
-use vars qw($sentencelth);
+use vars qw($sentencelth $handle_xml);
$sentencelth = 180;
-
+
#
# All the PCxx generation routines
#
{
my ($call, $text, $tonode, $sysop, $wx, $origin) = @_;
my $hops = get_hops(12);
- $origin ||= $main::mycall;
- $sysop ||= ' ';
$text ||= ' ';
- $wx ||= '0';
- $tonode ||= '*';
$text =~ s/\^/%5E/g;
+ $tonode ||= '*';
+ $sysop ||= ' ';
+ $wx ||= '0';
+ $origin ||= $main::mycall;
return "PC12^$call^$tonode^$text^$sysop^$origin^$wx^$hops^~";
}
# Request init string
sub pc18
{
- return "PC18^DXSpider Version: $main::version Build: $main::build^$DXProt::myprot_version^";
+ my $flags = " xml" if $handle_xml;
+ return "PC18^DXSpider Version: $main::version Build: $main::build$flags^$DXProt::myprot_version^";
}
#