mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02:00
Irssi::Irc::Dcc::* is now correctly blessed instead of using Irssi::Irc::Dcc
always. did s/irssi_bless/iobject_bless/, added simple_iobject_bless which DCC uses. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2092 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
99a6a85b85
commit
3819189ef4
14 changed files with 35 additions and 31 deletions
|
|
@ -28,9 +28,9 @@ static void perl_window_fill_hash(HV *hv, WINDOW_REC *window)
|
|||
hv_store(hv, "height", 6, newSViv(window->height), 0);
|
||||
|
||||
if (window->active)
|
||||
hv_store(hv, "active", 6, irssi_bless(window->active), 0);
|
||||
hv_store(hv, "active", 6, iobject_bless(window->active), 0);
|
||||
if (window->active_server)
|
||||
hv_store(hv, "active_server", 13, irssi_bless(window->active_server), 0);
|
||||
hv_store(hv, "active_server", 13, iobject_bless(window->active_server), 0);
|
||||
|
||||
hv_store(hv, "servertag", 9, new_pv(window->servertag), 0);
|
||||
hv_store(hv, "level", 5, newSViv(window->level), 0);
|
||||
|
|
@ -50,7 +50,7 @@ static void perl_window_fill_hash(HV *hv, WINDOW_REC *window)
|
|||
static void perl_text_dest_fill_hash(HV *hv, TEXT_DEST_REC *dest)
|
||||
{
|
||||
hv_store(hv, "window", 6, plain_bless(dest->window, "Irssi::UI::Window"), 0);
|
||||
hv_store(hv, "server", 6, irssi_bless(dest->server), 0);
|
||||
hv_store(hv, "server", 6, iobject_bless(dest->server), 0);
|
||||
hv_store(hv, "target", 6, new_pv(dest->target), 0);
|
||||
hv_store(hv, "level", 5, newSViv(dest->level), 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ PPCODE:
|
|||
for (tmp = window->items; tmp != NULL; tmp = tmp->next) {
|
||||
CHANNEL_REC *rec = tmp->data;
|
||||
|
||||
XPUSHs(sv_2mortal(irssi_bless(rec)));
|
||||
XPUSHs(sv_2mortal(iobject_bless(rec)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue