Mercurial > pidgin
view gaim2blt.pl @ 4214:709de528927e
[gaim-migrate @ 4452]
(11:48:27) faceprint: HUGE bug on my part
(11:48:35) faceprint: patch forthcoming
(11:48:52) faceprint: of COURSE the assignment operator is always going to come out true!
(11:49:24) LSchiere: how many times did you read that w/out catching it?
(11:49:27) faceprint: and it will cause other nastiness
(11:49:32) faceprint: only about 4
(11:51:51) faceprint: http://faceprint.com/code/gaim/fix-chat-tabs.20030106.1149.diff
(11:51:55) faceprint: apply quickly
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 06 Jan 2003 16:53:49 +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