annotate plugins/gaim.pl @ 2069:711d0115bf1e

[gaim-migrate @ 2079] Gilbert Ramirez (gramirez) patch to set port. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 15 Jul 2001 19:23:26 +0000
parents 190cef255530
children 571971659533
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
1 GAIM::register("gaim test", "0.0.1", "goodbye", "");
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
2
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
3 $ver = GAIM::get_info(0);
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
4 $nam = GAIM::get_info(1);
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
5 $pro = GAIM::get_info(2, $nam);
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
6
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
7 GAIM::print("Perl Says", "Gaim $ver, $nam using $pro");
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
8
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
9 GAIM::command("idle", 60000);
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
10
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
11 GAIM::add_event_handler("event_buddy_signon", "say_hello");
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
12 GAIM::add_timeout_handler(600, "notify");
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
13
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
14 sub echo_reply {
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
15 $args = @_;
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
16 $args =~ s/\"//g;
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
17 GAIM::print_to_conv($args, "Hello");
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
18 }
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
19
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
20 sub notify {
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
21 GAIM::print("10 minutes", "gaim test has been loaded for 10 minutes");
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
22 }
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
23
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
24 sub goodbye {
1526
190cef255530 [gaim-migrate @ 1536]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 806
diff changeset
25 GAIM::print("You Bastard!", "You killed Kenny!");
806
67bdecdecbb7 [gaim-migrate @ 816]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
26 }