mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Don't print GLIB critical when trying to bless unknown iobject - this could
well happen with some unknown objects like /EXEC -interactive's WI_ITEM_REC. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1583 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
89d7498019
commit
c249f62544
@ -61,7 +61,10 @@ SV *irssi_bless_iobject(int type, int chat_type, void *object)
|
||||
|
||||
rec = g_hash_table_lookup(iobject_stashes,
|
||||
GINT_TO_POINTER(type | (chat_type << 24)));
|
||||
g_return_val_if_fail(rec != NULL, newSViv(GPOINTER_TO_INT(object)));
|
||||
if (rec == NULL) {
|
||||
/* unknown iobject */
|
||||
return newSViv(GPOINTER_TO_INT(object));
|
||||
}
|
||||
|
||||
stash = gv_stashpv(rec->stash, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user