changeset 438:3c8ef0289f41

rename FreeNodeChat macro to qwebirc (that is the name of the software freenode uses)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 03 Oct 2009 18:53:39 +0200
parents 9ca675677fb4
children c0ca7b5ba39b
files data/plugin/macro/FreeNodeChat.py data/plugin/macro/qwebirc.py
diffstat 2 files changed, 29 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/FreeNodeChat.py	Sat Oct 03 18:43:58 2009 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-# -*- coding: iso-8859-1 -*-
-"""
-    MoinMoin - embed a webchat.freenode.net IRC chat iframe
-
-    @copyright: 2009 MoinMoin:ThomasWaldmann
-    @license: GNU GPL, see COPYING for details.
-"""
-
-from MoinMoin import wikiutil
-
-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:
-        qs['randomnick'] = randomnick
-    if prompt:
-        qs['prompt'] = prompt
-    qs = wikiutil.makeQueryString(qs)
-    html = u"""<iframe src="%(base_url)s?%(qs)s" width="%(width)d" height="%(height)d"></iframe>\n""" % locals()
-    return macro.formatter.rawHTML(html)
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/plugin/macro/qwebirc.py	Sat Oct 03 18:53:39 2009 +0200
@@ -0,0 +1,29 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - embed a webchat.freenode.net IRC chat iframe
+
+    @copyright: 2009 MoinMoin:ThomasWaldmann
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from MoinMoin import wikiutil
+
+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:
+        qs['randomnick'] = randomnick
+    if prompt:
+        qs['prompt'] = prompt
+    qs = wikiutil.makeQueryString(qs)
+    html = u"""<iframe src="%(base_url)s?%(qs)s" width="%(width)d" height="%(height)d"></iframe>\n""" % locals()
+    return macro.formatter.rawHTML(html)
+