[vhffs-dev] [1030] Oops, remove debug messages :p

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1030
Author:   gradator
Date:     2007-10-25 21:31:34 +0000 (Thu, 25 Oct 2007)

Log Message:
-----------
Oops, remove debug messages :p

Modified Paths:
--------------
    trunk/vhffs-irc/modobot.pl


Modified: trunk/vhffs-irc/modobot.pl
===================================================================
--- trunk/vhffs-irc/modobot.pl	2007-10-25 21:24:31 UTC (rev 1029)
+++ trunk/vhffs-irc/modobot.pl	2007-10-25 21:31:34 UTC (rev 1030)
@@ -111,18 +111,16 @@
 		else  {
 			my $wfreason;
 			my $charset;
-			eval { $wfreason = decode_utf8( $reason , Encode::FB_CROAK ); };
+			eval { $wfreason = Encode::decode_utf8( $reason , Encode::FB_CROAK ); };
 			if( $@ )  {
 				#decoding from utf8 failed, falling back to iso
-				$wfreason = decode('iso-8859-1', $reason);
+				$wfreason = Encode::decode('iso-8859-1', $reason);
 				$charset = 'ISO';
 			}
 			else  {
 				$charset = 'UTF-8';
 			}
 
-			irc_msg( $wfreason );
-
 			if( $object->moderate_refuse( $wfreason ) < 0 )  {
 				irc_msg('Error while committing changes');
 			}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/