Mercurial > pidgin
view gaim2blt.pl @ 8736:374477c0dd76
[gaim-migrate @ 9491]
(21:37:35) nosnilmot: LSchiere: do you want this?
http://nosnilmot.com/patches/gaim-0.77cvs-doclove.patch
(21:38:43) LSchiere: oh wow
(21:38:44) LSchiere: sure
(21:38:56) nosnilmot: oh crap, does that spelling nonsense conflict with
it?
(21:40:22) nosnilmot: LSchiere: apparently the spelling police avoided doc/
, so that patch should still apply
(21:40:29) KingAnt: :-)
(21:40:31) LSchiere: nosnilmot: commit message?
(21:40:44) KingAnt: "Dr. Love"
(21:40:54) nosnilmot: "I never knew EvilDennisR did anything, now I do"
(21:41:05) LSchiere: and the serious commit message?
but apparently we aren't being serious tonight.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 21 Apr 2004 01:43:16 +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