rev 1529 - in trunk/siesta: lib/Siesta lib/Siesta/Plugin messages

[prev] [thread] [next] [lurker] [Date index for 2004/10/18]

From: simon
Subject: rev 1529 - in trunk/siesta: lib/Siesta lib/Siesta/Plugin messages
Date: 11:45 on 18 Oct 2004
Author: simon
Date: 2004-10-18 11:45:48 +0100 (Mon, 18 Oct 2004)
New Revision: 1529

Modified:
   trunk/siesta/lib/Siesta/Deferred.pm
   trunk/siesta/lib/Siesta/Plugin/Resume.pm
   trunk/siesta/messages/challenge
Log:
a function called 'hash' interferes with TT's inbuilt vmethod 'hash'


Modified: trunk/siesta/lib/Siesta/Deferred.pm
===================================================================
--- trunk/siesta/lib/Siesta/Deferred.pm	2004-08-26 15:40:14 UTC (rev 1528)
+++ trunk/siesta/lib/Siesta/Deferred.pm	2004-10-18 10:45:48 UTC (rev 1529)
@@ -52,14 +52,14 @@
     return $plugins->[0]->list;
 }
 
-=head2 hash
+=head2 hash_value
 
 a hash of the deferred message, used for Challenge/Resume
 
 =cut
 
 
-sub hash {
+sub hash_value {
     my $self = shift;
     return md5_hex( $self->message->as_string );
 }

Modified: trunk/siesta/lib/Siesta/Plugin/Resume.pm
===================================================================
--- trunk/siesta/lib/Siesta/Plugin/Resume.pm	2004-08-26 15:40:14 UTC (rev 1528)
+++ trunk/siesta/lib/Siesta/Plugin/Resume.pm	2004-10-18 10:45:48 UTC (rev 1529)
@@ -15,7 +15,7 @@
         # you don't own this message, so you can't resume it
         return 1;
     }
-    unless ( $deferred->hash eq $hash ) {
+    unless ( $deferred->hash_value eq $hash ) {
         # wrong magic cookie
         return 1;
     }

Modified: trunk/siesta/messages/challenge
===================================================================
--- trunk/siesta/messages/challenge	2004-08-26 15:40:14 UTC (rev 1528)
+++ trunk/siesta/messages/challenge	2004-10-18 10:45:48 UTC (rev 1529)
@@ -1,7 +1,7 @@
 In order to complete the requested action either reply to this mail, 
 leaving the following line in tact :
 
-resume [% deferred.id %] [% deferred.hash %]
+resume [% deferred.id %] [% deferred.hash_value %]
 
 or go to this web page :
 

Generated at 10:02 on 24 Mar 2007 by mariachi 0.52