view plugins/gaim.pl @ 1345:d6e6fcaa1f39

[gaim-migrate @ 1355] ok. messages work. transports sort of work (you'll sign into them if you have them, but you won't see them and you can't add or remove them). resource is not a part of buddy's names, which is a very very big plus, since it means things will work incredibly well now. at some point the resource may be added back somehow but if it is it won't be part of the name. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 21 Dec 2000 13:54:22 +0000
parents 67bdecdecbb7
children 190cef255530
line wrap: on
line source

AIM::register("gaim test", "0.0.1", "goodbye", "");

$ver = AIM::get_info(0);
$nam = AIM::get_info(1);
$pro = AIM::get_info(2);

AIM::print("Perl Says", "Gaim $ver, $nam using $pro");

# i should probably do something with these to actually test them, huh
@bud = AIM::buddy_list();
@onl = AIM::online_list();
@den = AIM::deny_list();

AIM::command("idle", "60000") if ($pro ne "Offline");

AIM::add_event_handler("event_buddy_signon", "say_hello");
AIM::add_timeout_handler(600, "notify");

sub echo_reply {
	$args = @_;
	$args =~ s/\"//g;
	AIM::print_to_conv($args, "Hello");
}

sub notify {
	AIM::print("10 minutes", "gaim test has been loaded for 10 minutes");
}

sub goodbye {
	AIM::print("You Bastard!", "You killed Kenny!");
}