view gaim2blt.pl @ 10068:f948913f3c33

[gaim-migrate @ 11044] (20:18:34) sanmarcos: remember the patch to show if somebody blocked you in msn?, well I just found out it breaks the display of the away icon on your buddy list (20:18:46) sanmarcos: meaning, a user is away in msn, and the msn dude appears without an away icon overlayed (20:19:43) LSchiere: lovely (20:19:43) sanmarcos: only in the small buddy list though, I might be wrong and maybe it is not the patch (20:19:57) LSchiere: the small list should only show one overlay at a time (20:20:04) LSchiere: so if its showing some other... (20:20:05) sanmarcos: yep (20:20:21) sanmarcos: no, I just trying setting myself away (I dont have mobile or anything setup), and it doesnt show it (20:20:50) sanmarcos: besides setting the mobile number is pretty broken, afaik (20:21:45) sanmarcos: s/trying/tried committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 28 Sep 2004 00:22:47 +0000
parents 66bf7ecefedd
children
line wrap: on
line source

#!/usr/bin/perl -w
# Original by Andy Harrison,
# Rewrite by Decklin Foster,
# Available under the GPL.

package Gaim2Blt;
use strict;
use Getopt::Std;
use vars qw(%opts $in_group);

getopts('s:', \%opts);
die "usage: $0 -s 'screen name' gaim.buddy\n" unless $opts{s};

print <<"EOF";
Config {
  version 1
}
User {
  screenname "$opts{s}"
}
Buddy {
  list {
EOF

while (<>) {
    chomp;
    my ($type, $args) = split ' ', $_, 2;
    next unless $type;

    if ($type eq 'g') {
        print "    }\n" if ($in_group);
        print qq(    "$args" {\n);
        $in_group = 1;
    } elsif ($type eq 'b') {
        my ($buddy, $alias) = split /:/, $args;
        print qq(      "$buddy"\n);
    }
}

print <<"EOF";
    }
  }
}
EOF