summaryrefslogtreecommitdiff
path: root/src/perl/xs/Irssi-flood.xs
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-04-28 08:07:42 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-04-28 08:07:42 +0000
commita5a66264de2f56c5b1ba00e0228eae61f70d5689 (patch)
tree981b0663ff753f754cd0204b742ea12bff0d5e56 /src/perl/xs/Irssi-flood.xs
parent9cbf26d5199bdd1f3bd29fb27f181af4b94de02e (diff)
downloadirssi-a5a66264de2f56c5b1ba00e0228eae61f70d5689.zip
Perl working again, better than ever (unless there's bugs :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@191 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/xs/Irssi-flood.xs')
-rw-r--r--src/perl/xs/Irssi-flood.xs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/perl/xs/Irssi-flood.xs b/src/perl/xs/Irssi-flood.xs
new file mode 100644
index 00000000..3cb04226
--- /dev/null
+++ b/src/perl/xs/Irssi-flood.xs
@@ -0,0 +1,29 @@
+MODULE = Irssi PACKAGE = Irssi::Server
+
+void
+autoignore_add(server, nick, level)
+ Irssi::Server server
+ char *nick
+ int level
+
+int
+autoignore_remove(server, mask, level)
+ Irssi::Server server
+ char *mask
+ int level
+
+#*******************************
+MODULE = Irssi PACKAGE = Irssi::Autoignore
+#*******************************
+
+void
+values(ai)
+ Irssi::Autoignore ai
+PREINIT:
+ HV *hv;
+PPCODE:
+ hv = newHV();
+ hv_store(hv, "nick", 4, new_pv(ai->nick), 0);
+ hv_store(hv, "timeleft", 8, newSViv(ai->timeleft), 0);
+ hv_store(hv, "level", 5, newSViv(ai->level), 0);
+ XPUSHs(sv_2mortal(newRV_noinc((SV*)hv)));