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

void
autoignore_add(server, nick, level)
	Irssi::Irc::Server server
	char *nick
	int level

int
autoignore_remove(server, mask, level)
	Irssi::Irc::Server server
	char *mask
	int level

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

void
values(ai)
	Irssi::Irc::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)));