mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Ignore was moved to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@729 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b61e210389
commit
55299b6b4a
9 changed files with 29 additions and 27 deletions
|
|
@ -1,74 +0,0 @@
|
|||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc
|
||||
|
||||
void
|
||||
ignores()
|
||||
PREINIT:
|
||||
GSList *tmp;
|
||||
HV *stash;
|
||||
PPCODE:
|
||||
stash = gv_stashpv("Irssi::Irc::Ignore", 0);
|
||||
for (tmp = servers; tmp != NULL; tmp = tmp->next) {
|
||||
XPUSHs(sv_2mortal(sv_bless(newRV_noinc(newSViv(GPOINTER_TO_INT(tmp->data))), stash)));
|
||||
}
|
||||
|
||||
int
|
||||
ignore_check(nick, host, channel, text, level)
|
||||
char *nick
|
||||
char *host
|
||||
char *channel
|
||||
char *text
|
||||
int level
|
||||
CODE:
|
||||
RETVAL = ignore_check(NULL, nick, host, channel, text, level);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Server
|
||||
#*******************************
|
||||
|
||||
int
|
||||
ignore_check(server, nick, host, channel, text, level)
|
||||
Irssi::Irc::Server server
|
||||
char *nick
|
||||
char *host
|
||||
char *channel
|
||||
char *text
|
||||
int level
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::Irc PACKAGE = Irssi::Irc::Ignore PREFIX = ignore_
|
||||
#*******************************
|
||||
|
||||
void
|
||||
values(ignore)
|
||||
Irssi::Irc::Ignore ignore
|
||||
PREINIT:
|
||||
HV *hv;
|
||||
AV *av;
|
||||
char **tmp;
|
||||
PPCODE:
|
||||
hv = newHV();
|
||||
hv_store(hv, "mask", 4, new_pv(ignore->mask), 0);
|
||||
hv_store(hv, "servertag", 9, new_pv(ignore->servertag), 0);
|
||||
av = newAV();
|
||||
for (tmp = ignore->channels; *tmp != NULL; tmp++) {
|
||||
av_push(av, new_pv(*tmp));
|
||||
}
|
||||
hv_store(hv, "channels", 8, newRV_noinc((SV*)av), 0);
|
||||
hv_store(hv, "pattern", 7, new_pv(ignore->pattern), 0);
|
||||
|
||||
hv_store(hv, "level", 5, newSViv(ignore->level), 0);
|
||||
hv_store(hv, "except_level", 12, newSViv(ignore->except_level), 0);
|
||||
|
||||
hv_store(hv, "regexp", 6, newSViv(ignore->regexp), 0);
|
||||
hv_store(hv, "fullword", 8, newSViv(ignore->fullword), 0);
|
||||
XPUSHs(sv_2mortal(newRV_noinc((SV*)hv)));
|
||||
|
||||
void
|
||||
ignore_add_rec(rec)
|
||||
Irssi::Irc::Ignore rec
|
||||
|
||||
void
|
||||
ignore_update_rec(rec)
|
||||
Irssi::Irc::Ignore rec
|
||||
|
|
@ -5,7 +5,6 @@ MODULE = Irssi::Irc PACKAGE = Irssi::Irc
|
|||
PROTOTYPES: ENABLE
|
||||
|
||||
INCLUDE: Bans.xs
|
||||
INCLUDE: Ignore.xs
|
||||
INCLUDE: IrcServer.xs
|
||||
INCLUDE: IrcChannel.xs
|
||||
INCLUDE: IrcQuery.xs
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
#include "modes.h"
|
||||
#include "mode-lists.h"
|
||||
#include "netsplit.h"
|
||||
#include "ignore.h"
|
||||
|
||||
#include "dcc/dcc.h"
|
||||
#include "flood/autoignore.h"
|
||||
|
|
@ -25,4 +24,3 @@ typedef NETSPLIT_REC *Irssi__Irc__Netsplit;
|
|||
typedef NETSPLIT_SERVER_REC *Irssi__Irc__Netsplitserver;
|
||||
typedef AUTOIGNORE_REC *Irssi__Irc__Autoignore;
|
||||
typedef NOTIFYLIST_REC *Irssi__Irc__Notifylist;
|
||||
typedef IGNORE_REC *Irssi__Irc__Ignore;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@ Irssi::Irc::Netsplit T_PTROBJ
|
|||
Irssi::Irc::Netsplitserver T_PTROBJ
|
||||
Irssi::Irc::Autoignore T_PTROBJ
|
||||
Irssi::Irc::Notifylist T_PTROBJ
|
||||
Irssi::Irc::Ignore T_PTROBJ
|
||||
|
||||
Irssi::Nick T_PTROBJ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue