summaryrefslogtreecommitdiff
path: root/src/perl/irc/Bans.xs
blob: cd4ea9b8801eb6032b2a5af1f5c0e76700a68421 (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
MODULE = Irssi::Irc  PACKAGE = Irssi::Irc

void
ban_set_type(type)
	char *type

#*******************************
MODULE = Irssi::Irc  PACKAGE = Irssi::Irc::Channel
#*******************************

char *
ban_get_mask(channel, nick)
	Irssi::Irc::Channel channel
	char *nick

void
ban_set(channel, bans)
	Irssi::Irc::Channel channel
	char *bans

void
ban_remove(channel, ban)
	Irssi::Irc::Channel channel
	char *ban

#*******************************
MODULE = Irssi::Irc	PACKAGE = Irssi::Irc::Ban
#*******************************

void
values(ban)
	Irssi::Irc::Ban ban
PREINIT:
	HV *hv;
PPCODE:
	hv = newHV();
	hv_store(hv, "ban", 3, new_pv(ban->ban), 0);
	hv_store(hv, "setby", 5, new_pv(ban->setby), 0);
	hv_store(hv, "time", 4, newSViv(ban->time), 0);
	XPUSHs(sv_2mortal(newRV_noinc((SV*)hv)));