changeset 437:9ca675677fb4

FreeNodeChat: add channels param
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 03 Oct 2009 18:43:58 +0200
parents a0088ccd5b91
children 3c8ef0289f41
files data/plugin/macro/FreeNodeChat.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/FreeNodeChat.py	Sat Oct 03 18:39:18 2009 +0200
+++ b/data/plugin/macro/FreeNodeChat.py	Sat Oct 03 18:43:58 2009 +0200
@@ -8,13 +8,15 @@
 
 from MoinMoin import wikiutil
 
-def macro_FreeNodeChat(macro, nick=u'', randomnick=0, prompt=0, width=647, height=400):
+def macro_FreeNodeChat(macro, channels=u'', nick=u'', randomnick=0, prompt=0, width=647, height=400):
     """ Embed a freenode web chat iframe
 
         <<FreeNodeChat()>>
     """
     base_url = 'http://webchat.freenode.net/'
     qs = dict(width=width, height=height)
+    if channels:
+        qs['channels'] = channels
     if nick:
         qs['nick'] = nick
     if randomnick: