view plugins/gaim.pl @ 2361:554b001d7d98

[gaim-migrate @ 2374] it's going to be a lot harder to insert backd^H^H^H^H^Heaster eggs with everyone watching me. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 26 Sep 2001 19:19:19 +0000
parents 571971659533
children a83b4a5ffcd6
line wrap: on
line source

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

$ver = GAIM::get_info(0);
@ids = GAIM::get_info(1);

$msg = "Gaim $ver:";
foreach $id (@ids) {
	$pro = GAIM::get_info(7, $id);
	$nam = GAIM::get_info(3, $id);
	$msg .= "\n$nam using $pro";
}

GAIM::print("Perl Says", $msg);

GAIM::command("idle", 6000);

GAIM::add_event_handler("event_buddy_signon", "echo_reply");
GAIM::add_timeout_handler(60, "notify");

sub echo_reply {
	$args = $_[0];
	$args =~ s/(.+) \"(.+)\"//;
	GAIM::print_to_conv($1, $2, "Hello", 0);
}

sub notify {
	GAIM::print("1 minute", "gaim test has been loaded for 1 minute");
}

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