Mercurial > pidgin
view gaim2blt.pl @ 8673:5891a1a6fc7e
[gaim-migrate @ 9425]
(10:55:19) nosnilmot: LSchiere: at least part of that spellchk patch looks
wrong - why connect to all 3 of writing-im, writing-chat and sending-im ?
writing-* is supposed to allow changing the message before it is either
displayed or sent...
(10:56:53) nosnilmot: LSchiere: and I can't reproduce the problem described
in the patch/bug report (both sent and displayed are actually replaced) -
KingAnt already fixed this once
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 16 Apr 2004 14:58:10 +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