aboutsummaryrefslogtreecommitdiffstats
path: root/feature-tests/test.sub
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-10 21:56:19 +0000
committerTom Feist <shabble@metavore.org>2010-10-10 21:56:19 +0000
commit43424b9438dff43a056e4563b47e1f334dd94a25 (patch)
treeb45f22ac37c7faefb592a84bf7b7dd056e3e7b8e /feature-tests/test.sub
parentre-added additional signals to refresh prompt when needed (diff)
downloadirssi-scripts-43424b9438dff43a056e4563b47e1f334dd94a25.tar.gz
irssi-scripts-43424b9438dff43a056e4563b47e1f334dd94a25.zip
added a brief proof-of-concept for loading/reloading additional functions on the
fly from within irssi scripts.
Diffstat (limited to 'feature-tests/test.sub')
-rw-r--r--feature-tests/test.sub6
1 files changed, 6 insertions, 0 deletions
diff --git a/feature-tests/test.sub b/feature-tests/test.sub
new file mode 100644
index 0000000..6a24879
--- /dev/null
+++ b/feature-tests/test.sub
@@ -0,0 +1,6 @@
+{
+ 'moo' => sub { print "Moo" },
+ 'hello' => sub { print join(", ", @_) }
+};
+
+