1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00
irssi/src/perl/irc/Channel.xs
Timo Sirainen d346fbe1a9 Better !channel support - window items now have "visual_name" and channels
and queries also have "name". Normally they're identical but with !channels
the visible_name contains the short !channel name, while name contains
full !ABCDEchannel name.

The visible_name should be used whenever displaying the channel name, or as
printtext()'s target. So, this breaks a few scripts in !channels, they need
to be modified to use $channel->{visible_name} instead.

Also /LAYOUT SAVE should finally work properly with !channels.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16 00:34:37 +00:00

64 lines
1007 B
Plaintext

#include "module.h"
MODULE = Irssi::Irc::Channel PACKAGE = Irssi::Irc PREFIX = irc_
PROTOTYPES: ENABLE
char *
irc_get_mask(nick, address, flags)
char *nick
char *address
int flags
int
MASK_NICK()
CODE:
RETVAL = IRC_MASK_NICK;
OUTPUT:
RETVAL
int
MASK_USER()
CODE:
RETVAL = IRC_MASK_USER;
OUTPUT:
RETVAL
int
MASK_HOST()
CODE:
RETVAL = IRC_MASK_HOST;
OUTPUT:
RETVAL
int
MASK_DOMAIN()
CODE:
RETVAL = IRC_MASK_DOMAIN;
OUTPUT:
RETVAL
MODULE = Irssi::Irc::Channel PACKAGE = Irssi::Irc::Channel PREFIX = irc_
void
bans(channel)
Irssi::Irc::Channel channel
PREINIT:
GSList *tmp;
PPCODE:
for (tmp = channel->banlist; tmp != NULL; tmp = tmp->next) {
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Irc::Ban")));
}
Irssi::Irc::Nick
irc_nick_insert(channel, nick, op, halfop, voice, send_massjoin)
Irssi::Irc::Channel channel
char *nick
int op
int halfop
int voice
int send_massjoin
CODE:
RETVAL = irc_nicklist_insert(channel, nick, op, halfop, voice, send_massjoin);
OUTPUT:
RETVAL