From 5dcd6833242a88cbf0fdbcfa6a25fbe3bad77426 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 9 Dec 2000 20:54:47 +0000 Subject: fixes, perl should work correctly now :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@982 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/common/Ignore.xs | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/perl/common/Ignore.xs') diff --git a/src/perl/common/Ignore.xs b/src/perl/common/Ignore.xs index aab0db8b..89fb00ba 100644 --- a/src/perl/common/Ignore.xs +++ b/src/perl/common/Ignore.xs @@ -40,33 +40,6 @@ ignore_check(server, nick, host, channel, text, level) MODULE = Irssi PACKAGE = Irssi::Ignore PREFIX = ignore_ #******************************* -void -init(ignore) - Irssi::Ignore ignore -PREINIT: - HV *hv; - AV *av; - char **tmp; -CODE: - hv = hvref(ST(0)); - if (hv != NULL) { - hv_store(hv, "mask", 4, new_pv(ignore->mask), 0); - hv_store(hv, "servertag", 9, new_pv(ignore->servertag), 0); - av = newAV(); - for (tmp = ignore->channels; *tmp != NULL; tmp++) { - av_push(av, new_pv(*tmp)); - } - hv_store(hv, "channels", 8, newRV_noinc((SV*)av), 0); - hv_store(hv, "pattern", 7, new_pv(ignore->pattern), 0); - - hv_store(hv, "level", 5, newSViv(ignore->level), 0); - hv_store(hv, "except_level", 12, newSViv(ignore->except_level), 0); - - hv_store(hv, "regexp", 6, newSViv(ignore->regexp), 0); - hv_store(hv, "fullword", 8, newSViv(ignore->fullword), 0); - XPUSHs(sv_2mortal(newRV_noinc((SV*)hv))); - } - void ignore_add_rec(rec) Irssi::Ignore rec -- cgit v1.2.3