view plugins/gaim.pl @ 1853:c5b895edf254

[gaim-migrate @ 1863] (15:19:45) faceprint: warmenhoven: need to change the one instance of "vCard" to "VCARD" in plugins/jabber/jabber.c, do you really want a patch for it? (15:20:01) warmenhoven: haha, no, i think i can manage without one. (15:20:17) faceprint: good (15:20:32) faceprint: i was going to find some way to have someone hit you otherwise ;-) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 16 May 2001 22:21:22 +0000
parents 190cef255530
children 571971659533
line wrap: on
line source

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

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

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

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

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

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

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

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