2001-10-20 15:52:07 -04:00
|
|
|
#include "module.h"
|
|
|
|
|
|
|
|
MODULE = Irssi::Irc::Modes PACKAGE = Irssi::Irc
|
|
|
|
PROTOTYPES: ENABLE
|
2000-10-01 16:48:48 -04:00
|
|
|
|
2002-05-13 13:57:19 -04:00
|
|
|
void
|
2000-10-13 18:05:57 -04:00
|
|
|
modes_join(old, mode, channel)
|
2000-10-01 16:48:48 -04:00
|
|
|
char *old
|
|
|
|
char *mode
|
2000-10-13 18:05:57 -04:00
|
|
|
int channel
|
2002-05-13 13:57:19 -04:00
|
|
|
PREINIT:
|
|
|
|
char *ret;
|
|
|
|
PPCODE:
|
|
|
|
ret = modes_join(old, mode, channel);
|
2002-05-13 14:25:21 -04:00
|
|
|
XPUSHs(sv_2mortal(new_pv(ret)));
|
2002-05-13 13:57:19 -04:00
|
|
|
g_free(ret);
|
2000-10-01 16:48:48 -04:00
|
|
|
|
|
|
|
#*******************************
|
2001-10-20 15:52:07 -04:00
|
|
|
MODULE = Irssi::Irc::Modes PACKAGE = Irssi::Irc::Channel PREFIX = channel_
|
2000-10-01 16:48:48 -04:00
|
|
|
#*******************************
|
|
|
|
|
2002-05-13 13:57:19 -04:00
|
|
|
void
|
2001-03-03 15:48:23 -05:00
|
|
|
ban_get_mask(channel, nick, ban_type)
|
2000-10-01 16:48:48 -04:00
|
|
|
Irssi::Irc::Channel channel
|
2001-01-07 04:54:21 -05:00
|
|
|
char *nick
|
2001-03-03 15:48:23 -05:00
|
|
|
int ban_type
|
2002-05-13 13:57:19 -04:00
|
|
|
PREINIT:
|
|
|
|
char *ret;
|
|
|
|
PPCODE:
|
|
|
|
ret = ban_get_mask(channel, nick, ban_type);
|
2002-05-13 14:25:21 -04:00
|
|
|
XPUSHs(sv_2mortal(new_pv(ret)));
|
2002-05-13 13:57:19 -04:00
|
|
|
g_free(ret);
|
2000-10-01 16:48:48 -04:00
|
|
|
|
|
|
|
Irssi::Irc::Ban
|
|
|
|
banlist_add(channel, ban, nick, time)
|
|
|
|
Irssi::Irc::Channel channel
|
|
|
|
char *ban
|
|
|
|
char *nick
|
|
|
|
time_t time
|
|
|
|
|
|
|
|
void
|
|
|
|
banlist_remove(channel, ban)
|
|
|
|
Irssi::Irc::Channel channel
|
|
|
|
char *ban
|