--- original1-1/smileys.module	2006-11-25 21:23:54.000000000 +0100
+++ smileys.module	2007-07-16 21:58:23.000000000 +0200
@@ -137,9 +155,9 @@ function smileys_filter_process($text) {
     $alt = str_replace('\\', '\\\\', check_plain($smiley->description));
     foreach ($acronyms as $a) {
       if ($smiley->standalone)
-        $text = eregi_replace("([ ,\.\?!:\(\)\r\n\<\>])". preg_quote($a) ."([ ,\.\?!:\(\)\r\n\<\>])", "\\1<img src=\"". check_url(base_path() . $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" />\\2", $text);
+        $text = eregi_replace("([][ ,\.\?!:\(\)\r\n\<\>(\xC2\xA0)])". preg_quote($a) ."([][ ,\.\?!:\(\)\r\n\<\>(\xC2\xA0)])", "\\1<img src=\"". check_url(base_path() . $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" />\\2", $text);
       else
-        $text = eregi_replace(preg_quote($a), '<img src="'. check_url(base_path() . $smiley->image) .'" title="'. check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $text);
+        $text = str_replace($a, '<img src="'. check_url(base_path() . $smiley->image) .'" title="'. check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $text);
     }
   }
   $text = substr($text, 1, -1);
