milkbone57 22 years ago
parent
commit
a5a79fb39d
  1. 54
      mos.pl

54
mos.pl

@ -9,42 +9,46 @@ @@ -9,42 +9,46 @@
# License : it's on our TODO list...
# -----------------------------------------------------------------------
use 5.006; # milkbone might work on 5.004 or lower; someone should find out...
eval {
use warnings;
use strict;
use 5.006; # milkbone might work on 5.004 or lower; someone should find out...
use lib 'lib';
use lib '.';
use warnings;
use strict;
use Tk;
use lib 'lib';
use lib '.';
$SIG{CHLD} = 'IGNORE'; # this is so forked processes don't become zombies
use Tk;
use Milkbone;
use Milkbone::Hooks qw(load_options pre_mainloop post_mainloop
protocol_signon load_plugins);
$SIG{CHLD} = 'IGNORE'; # this is so forked processes don't become zombies
$| = 1;
use Milkbone;
use Milkbone::Hooks qw(load_options pre_mainloop post_mainloop
protocol_signon load_plugins);
sub main
{
Milkbone->init();
$| = 1;
load_options;
sub main
{
Milkbone->init();
require "plugins/Tk-Splash.pl" unless option("NoSplash");
load_options;
load_plugins;
pre_mainloop;
require "plugins/Tk-Splash.pl" unless option("NoSplash");
protocol_signon -user => 'test', -pass => 'test';
data("me") = "test";
load_plugins;
pre_mainloop;
MOSLoop;
protocol_signon -user => 'test', -pass => 'test';
data("me") = "test";
post_mainloop;
}
MOSLoop;
post_mainloop;
}
# off it goes...
main();
# off it goes...
main();
};
print $@ if $@;

Loading…
Cancel
Save