--- a/branches/2.5.4RC1/cgi-bin/yabb2/Sources/AddModerators.pm
+++ b/branches/2.5.4RC1/cgi-bin/yabb2/Sources/AddModerators.pm
@@ -24,7 +24,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.5.41';
 
-$addmoderatorspmver = 'YaBB 2.5.4 RC1 $Revision: 1231 $';
+$addmoderatorspmver = 'YaBB 2.5.4 RC1 $Revision: 1386 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 LoadLanguage('AddModerators');
@@ -86,6 +86,7 @@
     my @x    = @_;
     my $user = $x[0];
     @modbd = split /, /sm, $x[1];
+    chomp @modbd;
     fopen( FORUMCNTR, "$boardsdir/forum.control" )
       || fatal_error( 'cannot_open', "$boardsdir/forum.control", 1 );
     my @boardcntr = <FORUMCNTR>;
@@ -105,6 +106,7 @@
             $adbrulesdesc,    $adrulescollapse
         ) = split /\|/xsm, $boardline;
         @bdmodlist = split /, /sm, $admdmods;
+        chomp @bdmodlist;
         $admdmods  = q{};
         $bdi       = 0;
         foreach (@bdmodlist) {