changeset 440:24897c510f52

qwebirc macro: fix cfg attr
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 03 Oct 2009 19:11:38 +0200
parents c0ca7b5ba39b
children da901fe39fa9
files data/plugin/macro/qwebirc.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/qwebirc.py	Sat Oct 03 19:08:53 2009 +0200
+++ b/data/plugin/macro/qwebirc.py	Sat Oct 03 19:11:38 2009 +0200
@@ -26,8 +26,10 @@
 
         <<qwebirc()>>
     """
+    request = macro.request
+    cfg = request.cfg
     try:
-        servers = getattr(macro.request.cfg, 'qwebirc_servers')
+        servers = getattr(cfg, 'qwebirc_servers')
     except AttributeError:
         pass # use "servers" from globals