summaryrefslogtreecommitdiff
path: root/src/perl/common/Ignore.xs
blob: e4452c781700272f196aea7846310e33e109fe7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "module.h"

MODULE = Irssi::Ignore  PACKAGE = Irssi
PROTOTYPES: ENABLE

void
ignores()
PREINIT:
	GSList *tmp;
PPCODE:
	for (tmp = ignores; tmp != NULL; tmp = tmp->next) {
		XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Ignore")));
	}

int
ignore_check(nick, host, channel, text, level)
	char *nick
	char *host
	char *channel
	char *text
	int level
CODE:
	RETVAL = ignore_check(NULL, nick, host, channel, text, level);
OUTPUT:
	RETVAL

#*******************************
MODULE = Irssi::Ignore  PACKAGE = Irssi::Server
#*******************************

int
ignore_check(server, nick, host, channel, text, level)
	Irssi::Server server
	char *nick
	char *host
	char *channel
	char *text
	int level

#*******************************
MODULE = Irssi::Ignore  PACKAGE = Irssi::Ignore  PREFIX = ignore_
#*******************************

void
ignore_add_rec(rec)
	Irssi::Ignore rec

void
ignore_update_rec(rec)
	Irssi::Ignore rec