From 1cee1e3d99f34ecd889e386376d7068f55c2863a Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 23 Dec 2009 17:47:44 -0500 Subject: [PATCH] Set debugging enablement earlier so it can be used from thrasher_wrapper_init(). --- perl/lib/Thrasher/Protocol/Purple.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/perl/lib/Thrasher/Protocol/Purple.pm b/perl/lib/Thrasher/Protocol/Purple.pm index 5ca77ef..beef8b0 100644 --- a/perl/lib/Thrasher/Protocol/Purple.pm +++ b/perl/lib/Thrasher/Protocol/Purple.pm @@ -39,6 +39,9 @@ use Thrasher::Plugin::EntityCapabilities; my $DEBUG = 1; +# Internal debugging +THPPW::thrasher_purple_debug($DEBUG); + # Initialize the wrapper THPPW::thrasher_wrapper_init (Thrasher::error_wrap("timeout_add", \&_timeout_add), @@ -53,10 +56,6 @@ THPPW::thrasher_wrapper_init Thrasher::error_wrap("incoming_chatstate", \&_incoming_chatstate), ); - -# Internal debugging -THPPW::thrasher_purple_debug($DEBUG); - # Initialize the remainder THPPW::thrasher_init(); -- 2.11.4.GIT