summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-10 20:23:50 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-10 20:23:50 +0000
commit3b8622f1aaa83f082286af6e4efbd648042fcfcb (patch)
treea2e071ad8e992ec595a53e21091a0a721f18aa86 /src
parenteb91b126ecb77e3348b5040284ffcf57854913ce (diff)
downloadirssi-3b8622f1aaa83f082286af6e4efbd648042fcfcb.zip
Allow exporting symbols, patch by juerd@juerd.nl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2233 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/perl/common/Irssi.pm7
-rw-r--r--src/perl/irc/Irc.pm2
-rw-r--r--src/perl/textui/TextUI.pm2
-rw-r--r--src/perl/ui/UI.pm2
4 files changed, 13 insertions, 0 deletions
diff --git a/src/perl/common/Irssi.pm b/src/perl/common/Irssi.pm
index 56c23f75..ce35c52e 100644
--- a/src/perl/common/Irssi.pm
+++ b/src/perl/common/Irssi.pm
@@ -13,6 +13,11 @@ sub VERSION {
if ($version > version());
}
+sub EXPORT_ALL () {
+ no strict 'refs';
+ @EXPORT_OK = grep { /[a-z]/ && defined *{$_}{CODE} } keys %Irssi::;
+}
+
$VERSION = "0.9";
require Exporter;
@@ -37,5 +42,7 @@ bootstrap Irssi $VERSION if (!Irssi::Core::is_static());
Irssi::init();
+Irssi::EXPORT_ALL();
+
1;
diff --git a/src/perl/irc/Irc.pm b/src/perl/irc/Irc.pm
index ee4e3c56..1d95462d 100644
--- a/src/perl/irc/Irc.pm
+++ b/src/perl/irc/Irc.pm
@@ -20,5 +20,7 @@ bootstrap Irssi::Irc $VERSION if (!Irssi::Core::is_static());
Irssi::Irc::init();
+Irssi::EXPORT_ALL();
+
1;
diff --git a/src/perl/textui/TextUI.pm b/src/perl/textui/TextUI.pm
index 69175771..50f247c7 100644
--- a/src/perl/textui/TextUI.pm
+++ b/src/perl/textui/TextUI.pm
@@ -20,5 +20,7 @@ bootstrap Irssi::TextUI $VERSION if (!Irssi::Core::is_static());
Irssi::TextUI::init();
+Irssi::EXPORT_ALL();
+
1;
diff --git a/src/perl/ui/UI.pm b/src/perl/ui/UI.pm
index e7058423..5bab7b6b 100644
--- a/src/perl/ui/UI.pm
+++ b/src/perl/ui/UI.pm
@@ -20,4 +20,6 @@ bootstrap Irssi::UI $VERSION if (!Irssi::Core::is_static());
Irssi::UI::init();
+Irssi::EXPORT_ALL();
+
1;