aboutsummaryrefslogtreecommitdiffstats
path: root/modules/perl_plus/perl_plus_core.c
diff options
context:
space:
mode:
authorricho <richo@psych0tik.net>2011-07-18 03:36:40 +0000
committerricho <richo@psych0tik.net>2011-07-18 03:36:40 +0000
commite4b9ea15d7abdae8211d18737fa54933f3faf57b (patch)
treefda4cc23faebfd1f130578b39fe161fe4c0ba1f8 /modules/perl_plus/perl_plus_core.c
parentAdded goodnicks from richoH/richos-irssi (diff)
parentOnly attempt join if channel exists (diff)
downloadirssi-scripts-e4b9ea15d7abdae8211d18737fa54933f3faf57b.tar.gz
irssi-scripts-e4b9ea15d7abdae8211d18737fa54933f3faf57b.zip
Merge branch 'master' into richoH-dev
Diffstat (limited to 'modules/perl_plus/perl_plus_core.c')
-rw-r--r--modules/perl_plus/perl_plus_core.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/perl_plus/perl_plus_core.c b/modules/perl_plus/perl_plus_core.c
new file mode 100644
index 0000000..61b8ffc
--- /dev/null
+++ b/modules/perl_plus/perl_plus_core.c
@@ -0,0 +1,34 @@
+
+/* Originally this code was part of the irssi-lua module
+ * <https://github.com/ahf/irssi-lua> and copyright as below:
+ *
+ * Copyright (c) 2009 Alexander Færøy <ahf@irssi.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+#include <perl_plus_core.h>
+#include <perl_plus_irssi.h>
+#include <perl_plus_impl.h>
+
+void perl_plus_init() {
+ module_register(MODULE_NAME, "core");
+ print_load_message();
+}
+
+void perl_plus_deinit() {
+ print_unload_message();
+}