irssi/src/perl/irc/IrcChannel.xs
2001-02-02 22:10:20 +00:00

55 lines
1.1 KiB
Text

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::Nick
irc_nick_insert(channel, nick, op, voice, send_massjoin)
Irssi::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