--- spamspan/spamspan.module	2007-09-15 19:32:25.000000000 +0200
+++ spamspan.module	2009-07-15 21:04:08.000000000 +0200
@@ -101,6 +101,14 @@
         '#required' => TRUE,
         '#description' => t('Replace "@" with this text when javascript is disabled.')
       );
+      // spamspan '.' replacement
+      $form['spamspan_settings']['spamspan_dot'] = array(
+        '#type' => 'textfield',
+        '#title' => t('Replacement for "."'),
+        '#default_value' => variable_get('spamspan_dot', ' [dot] '),
+        '#required' => TRUE,
+        '#description' => t('Replace "." with this text when javascript is disabled.')
+      );
       return $form;
     }
     break;
@@ -130,8 +138,8 @@
  */
 function spamspan_callback($matches) {
   // Replace .'s in the address with [dot]
-  $user_name = str_replace(".", " [dot] ", $matches[1]);
-  $domain = str_replace(".", " [dot] ", $matches[2]);
+  $user_name = str_replace(".", variable_get('spamspan_dot', ' [dot] '), $matches[1]);
+  $domain = str_replace(".", variable_get('spamspan_dot',' [dot] '), $matches[2]);
   return '<span class="spamspan"><span class="'. variable_get('spamspan_userclass', 'u') ."\">$user_name</span>". variable_get('spamspan_at', ' [at] ') ."<span class=\"". variable_get('spamspan_domainclass', 'd') ."\">$domain</span></span>";
 }
 
