Replace 'account' with 'user' everywhere.
[mailshears.git] / lib / common / agendav_plugin.rb
index 88de0d79ded0ca11897f1fbf4a60bf0162db2d92..7522b2cfce630a7340b69fadd5d7279ea4b9ffd9 100644 (file)
@@ -6,8 +6,7 @@ module AgendavPlugin
   include Plugin
 
 
-  def initialize()
-    cfg = Configuration.new()
+  def initialize(cfg)
     @db_host = cfg.agendav_dbhost
     @db_port = cfg.agendav_dbport
     @db_opts = cfg.agendav_dbopts
@@ -24,9 +23,9 @@ module AgendavPlugin
   end
 
 
-  def describe_account(account)
-    if self.user_exists(account)
-      return "Username: #{account}"
+  def describe_user(user)
+    if self.user_exists(user)
+      return "Username: #{user}"
     else
       return 'User not found'
     end