Mercurial > pidgin
comparison src/perl.c @ 3573:163205125ee2
[gaim-migrate @ 3671]
perl fix
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 30 Sep 2002 01:29:08 +0000 |
parents | bdd0bebd2d04 |
children | 9682c0e022c6 |
comparison
equal
deleted
inserted
replaced
3572:bdd0bebd2d04 | 3573:163205125ee2 |
---|---|
952 | 952 |
953 for (handler = perl_event_handlers; handler != NULL; handler = handler->next) { | 953 for (handler = perl_event_handlers; handler != NULL; handler = handler->next) { |
954 data = handler->data; | 954 data = handler->data; |
955 if (!strcmp(event_name(event), data->event_type)) { | 955 if (!strcmp(event_name(event), data->event_type)) { |
956 handler_return = execute_perl(data->handler_name, buf); | 956 handler_return = execute_perl(data->handler_name, buf); |
957 if (SvIV(handler_return)) { | 957 if (handler_return) { |
958 if (buf) | 958 if (buf) |
959 g_free(buf); | 959 g_free(buf); |
960 return SvIV(handler_return); | 960 return handler_return; |
961 } | 961 } |
962 } | 962 } |
963 } | 963 } |
964 | 964 |
965 if (buf) | 965 if (buf) |