Preferences/__init__.py

changeset 2247
bddb4557c97e
parent 2228
5c59b9393306
child 2257
4c3bda2b71f2
--- a/Preferences/__init__.py	Thu Dec 06 19:40:03 2012 +0100
+++ b/Preferences/__init__.py	Thu Dec 06 20:00:25 2012 +0100
@@ -953,6 +953,10 @@
         "NotifyJoinPart": True,
         "NotifyMessage": False,
         "NotifyNick": False,
+        
+        "AutoUserInfoLookup": True,
+        "AutoUserInfoMax": 200,
+        "AutoUserInfoInterval": 90,
     }
 
 
@@ -2587,9 +2591,13 @@
     @return the requested user setting
     """
     if key in ["TimestampIncludeDate", "ShowTimestamps", "ShowNotifications",
-               "NotifyJoinPart", "NotifyMessage", "NotifyNick", "EnableIrcColours"]:
+               "NotifyJoinPart", "NotifyMessage", "NotifyNick", "EnableIrcColours",
+               "AutoUserInfoLookup"]:
         return toBool(prefClass.settings.value("IRC/" + key,
                 prefClass.ircDefaults[key]))
+    elif key in ["AutoUserInfoMax", "AutoUserInfoInterval"]:
+        return int(prefClass.settings.value("IRC/" + key,
+                prefClass.ircDefaults[key]))
     else:
         return prefClass.settings.value("IRC/" + key, prefClass.ircDefaults[key])
 

eric ide

mercurial