mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
plain objects weren't blessed correctly in lists
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1554 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3f2b189a4c
commit
3a0534da46
8 changed files with 13 additions and 27 deletions
|
|
@ -5,11 +5,9 @@ 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);
|
||||
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Irc::Ban")));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -17,11 +15,9 @@ 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);
|
||||
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Irc::Ban")));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -4,11 +4,9 @@ void
|
|||
notifies()
|
||||
PREINIT:
|
||||
GSList *tmp;
|
||||
HV *stash;
|
||||
PPCODE:
|
||||
stash = gv_stashpv("Irssi::Irc::Notifylist", 0);
|
||||
for (tmp = notifies; tmp != NULL; tmp = tmp->next) {
|
||||
push_bless(tmp->data, stash);
|
||||
XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Irc::Notifylist")));
|
||||
}
|
||||
|
||||
Irssi::Irc::Notifylist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue