Mercurial > pidgin
diff plugins/PERL-HOWTO @ 2511:a83b4a5ffcd6
[gaim-migrate @ 2524]
malsyned's patch for args in perl.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 15 Oct 2001 19:52:44 +0000 |
parents | 571971659533 |
children | bf7ec3874810 |
line wrap: on
line diff
--- a/plugins/PERL-HOWTO Mon Oct 15 19:18:19 2001 +0000 +++ b/plugins/PERL-HOWTO Mon Oct 15 19:52:44 2001 +0000 @@ -122,10 +122,11 @@ (a string with the same name as the events for plugins, see SIGNALS), and a string with the name of the function you want called. Simple enough? - When this is triggered, the arguments will be passed in @_ and are not - broken into a list, but left as one long string. You'll have to parse those - yourself with split. (Sounding exactly like X-Chat yet?) The arguments are - the exact same as those passed to the plugins, and are passed after the + When this is triggered, the arguments will be passed in @_ and are broken + into a list. This is different from all previous versions of Gaim, where you + had to parse the arguments yourself. The arguments are quite different from + what's passed to the plugins, though they are very similar, and you should + read perl.c to figure out what they are. The arguments are passed after the plugins have had their way with them. Perl scripts cannot modify the values so that gaim knows what the changes are. @@ -135,10 +136,6 @@ and the event itself to never happen (i.e. the user won't see it happen, and _send events won't actually send). - Names of buddies and chat rooms will be in quotes, and all other - values (like text messages) will not be. (Watch the debug window to get a - better feel for this, or better yet, look at the bottom of plugins.c.) - GAIM::add_timeout_handler(integer, function) This calls function after integer number of seconds. It only calls function once, so if you want to keep calling function, keep readding the handler.