summaryrefslogtreecommitdiff
path: root/src/perl/common/Masks.xs
blob: 1ea13969320e00e12ca37f7fecff2f26ac3aa00a (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
51
52
53
54
55
56
57
58
59
60
61
#include "module.h"

MODULE = Irssi::Masks  PACKAGE = Irssi
PROTOTYPES: ENABLE

int
mask_match(mask, nick, user, host)
	char *mask
	char *nick
	char *user
	char *host
CODE:
	RETVAL = mask_match(NULL, mask, nick, user, host);
OUTPUT:
	RETVAL

int
mask_match_address(mask, nick, address)
	char *mask
	char *nick
	char *address
CODE:
	RETVAL = mask_match_address(NULL, mask, nick, address);
OUTPUT:
	RETVAL

int
masks_match(masks, nick, address)
	char *masks
	char *nick
	char *address
CODE:
	RETVAL = masks_match(NULL, masks, nick, address);
OUTPUT:
	RETVAL

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

int
mask_match(server, mask, nick, user, host)
	Irssi::Server server
	char *mask
	char *nick
	char *user
	char *host

int
mask_match_address(server, mask, nick, address)
	Irssi::Server server
	char *mask
	char *nick
	char *address

int
masks_match(server, masks, nick, address)
	Irssi::Server server
	char *masks
	char *nick
	char *address