4 # Arturo Cisneros, Jr <acjr@hal-pc.org>
9 my $DIR = "$ENV{HOME}/.licq";
10 my $GAIM = "$ENV{HOME}/.gaim";
11 my (@UINS, %USERS) = ();
17 foreach my $uin (@UINS) {
18 $USERS{$uin} = get_alias
($uin);
27 opendir(DIR
, "$DIR/users") or die "Couldn't open dir $DIR/users/: $!";
28 @UINS = grep !/^\./, readdir DIR
;
36 open(FILE
, "<$DIR/owner.uin") or die "Couldn't open file $DIR/owner.uin $!";
51 open(FILE
, "<$DIR/users/$_[0]") or die "Couldn't open $DIR/users/$_[0]: $!";
54 @foo = split / /, $_, 3;
65 if( -e
"$GAIM/$OWNER.3.blist") {
66 rename("$GAIM/$OWNER.3.blist","$GAIM/$OWNER.3.bak");
70 open(FILE
, ">$GAIM/$OWNER.3.blist") or die "Couldn't open file for writing: $!";
72 print FILE
"g ICQBuddies\n";
73 while(my($key, $value) = each %USERS) {
75 print FILE
"b $key:$value";