]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mailshears/plugins/roundcube_db.rb
Fix a comment.
[mailshears.git] / lib / mailshears / plugins / roundcube_db.rb
index c86d31460e93d96395d4cc29e0849f9a15803ae0..d563a244fcaa3fd3c25beb45f093bc7d2486352d 100644 (file)
@@ -5,13 +5,14 @@ class RoundcubeDb
   include Plugin
 
   def initialize()
-    @db_host = Configuration::roundcube_dbhost
-    @db_port = Configuration::roundcube_dbport
-    @db_opts = Configuration::roundcube_dbopts
-    @db_tty  = Configuration::roundcube_dbtty
-    @db_name = Configuration::roundcube_dbname
-    @db_user = Configuration::roundcube_dbuser
-    @db_pass = Configuration::roundcube_dbpass
+    cfg = Configuration.new()
+    @db_host = cfg.roundcube_dbhost
+    @db_port = cfg.roundcube_dbport
+    @db_opts = cfg.roundcube_dbopts
+    @db_tty  = cfg.roundcube_dbtty
+    @db_name = cfg.roundcube_dbname
+    @db_user = cfg.roundcube_dbuser
+    @db_pass = cfg.roundcube_dbpass
   end
 
 
@@ -92,7 +93,7 @@ class RoundcubeDb
 
 
   def get_leftover_accounts(db_accounts)
-    # Given a list of all users who have logged in to Roundcube.
+    # Get a list of all users who have logged in to Roundcube.
     rc_accounts = self.get_roundcube_usernames()
     return rc_accounts - db_accounts
   end