[gaim-migrate @ 1536]

Sat, 03 Mar 2001 06:19:19 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Sat, 03 Mar 2001 06:19:19 +0000
changeset 1526
ce6493ab6c15
parent 1525
b4ece1a718cd
child 1527
bb0dea36d01a

[gaim-migrate @ 1536]
updated for 0.11.0

plugins/gaim.pl file | annotate | diff | comparison | revisions
--- a/plugins/gaim.pl	Sat Mar 03 00:26:04 2001 +0000
+++ b/plugins/gaim.pl	Sat Mar 03 06:19:19 2001 +0000
@@ -1,31 +1,26 @@
-AIM::register("gaim test", "0.0.1", "goodbye", "");
+GAIM::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");
+$ver = GAIM::get_info(0);
+$nam = GAIM::get_info(1);
+$pro = GAIM::get_info(2, $nam);
 
-# i should probably do something with these to actually test them, huh
-@bud = AIM::buddy_list();
-@onl = AIM::online_list();
-@den = AIM::deny_list();
+GAIM::print("Perl Says", "Gaim $ver, $nam using $pro");
 
-AIM::command("idle", "60000") if ($pro ne "Offline");
+GAIM::command("idle", 60000);
 
-AIM::add_event_handler("event_buddy_signon", "say_hello");
-AIM::add_timeout_handler(600, "notify");
+GAIM::add_event_handler("event_buddy_signon", "say_hello");
+GAIM::add_timeout_handler(600, "notify");
 
 sub echo_reply {
 	$args = @_;
 	$args =~ s/\"//g;
-	AIM::print_to_conv($args, "Hello");
+	GAIM::print_to_conv($args, "Hello");
 }
 
 sub notify {
-	AIM::print("10 minutes", "gaim test has been loaded for 10 minutes");
+	GAIM::print("10 minutes", "gaim test has been loaded for 10 minutes");
 }
 
 sub goodbye {
-	AIM::print("You Bastard!", "You killed Kenny!");
+	GAIM::print("You Bastard!", "You killed Kenny!");
 }

mercurial