mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-06-12 09:35 pm

[dw-free] managing circle via console results in randomly-assigned colors

[commit: http://hg.dwscoalition.org/dw-free/rev/f61e1e971ba1]

http://bugs.dwscoalition.org/show_bug.cgi?id=1297

More work on the debugging-mode console command that was never intended to
live past beta. This one removes the random colors.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/DW/Console/Command/ManageCircle.pm
--------------------------------------------------------------------------------
diff -r 025840393f72 -r f61e1e971ba1 cgi-bin/DW/Console/Command/ManageCircle.pm
--- a/cgi-bin/DW/Console/Command/ManageCircle.pm	Fri Jun 12 21:15:36 2009 +0000
+++ b/cgi-bin/DW/Console/Command/ManageCircle.pm	Fri Jun 12 21:35:52 2009 +0000
@@ -57,8 +57,6 @@ sub execute {
 
     if ( $cmd eq 'add_read' ) {
         $remote->add_edge( $to_u, watch => {
-            fgcolor => int(rand()*16777216),
-            bgcolor => int(rand()*16777216),
             nonotify => $remote->watches( $to_u ) ? 1 : 0,
         } );
 
--------------------------------------------------------------------------------