Skip to content

Commit

Permalink
Would help if it compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
lol768 committed Mar 2, 2015
1 parent 85fc9a3 commit 32ffb04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Korobi/WebBundle/Parser/IRCColourParser.php
Expand Up @@ -31,7 +31,8 @@ public static function parseColour($messageFragment, $swap=false, $defaultFg, $d
}
}
if ($swap) {
$result = ['foreground' => $result['background'], 'background' => $result['foreground']];
$result['foreground'] = $result['background'];
$result['background'] = $result['foreground'];
if (!count($matches) > 2) {
$result['background'] = $defaultFg;
}
Expand Down

0 comments on commit 32ffb04

Please sign in to comment.