summaryrefslogtreecommitdiff
path: root/src/perl/irc/IrcChannel.xs
blob: 36e40780aa67b3f24146b2f97ce2b5e05f7a33f5 (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
MODULE = Irssi::Irc	PACKAGE = Irssi::Irc::Channel  PREFIX = irc_

void
bans(channel)
	Irssi::Irc::Channel channel
PREINIT:
	GSList *tmp;
	HV *stash;
PPCODE:
	stash = gv_stashpv("Irssi::Irc::Ban", 0);
	for (tmp = channel->banlist; tmp != NULL; tmp = tmp->next) {
		push_bless(tmp->data, stash);
	}

void
ebans(channel)
	Irssi::Irc::Channel channel
PREINIT:
	GSList *tmp;
	HV *stash;
PPCODE:
	stash = gv_stashpv("Irssi::Irc::Ban", 0);
	for (tmp = channel->ebanlist; tmp != NULL; tmp = tmp->next) {
		push_bless(tmp->data, stash);
	}

void
invites(channel)
	Irssi::Irc::Channel channel
PREINIT:
	GSList *tmp;
PPCODE:
	for (tmp = channel->invitelist; tmp != NULL; tmp = tmp->next) {
		XPUSHs(new_pv(tmp->data));
	}

Irssi::Irc::Nick
irc_nick_insert(channel, nick, op, voice, send_massjoin)
	Irssi::Irc::Channel channel
	char *nick
	int op
	int voice
	int send_massjoin
CODE:
	RETVAL = irc_nicklist_insert(channel, nick, op, voice, send_massjoin);
OUTPUT:
	RETVAL

MODULE = Irssi::Irc	PACKAGE = Irssi::Irc::Server  PREFIX = irc_

Irssi::Irc::Channel
irc_channel_create(server, name, automatic)
	Irssi::Irc::Server server
	char *name
	int automatic