mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Using Irssi::Ignore crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2865 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ddfc6aebcc
commit
e7902ae551
@ -420,8 +420,10 @@ static void perl_ignore_fill_hash(HV *hv, IGNORE_REC *ignore)
|
|||||||
hv_store(hv, "mask", 4, new_pv(ignore->mask), 0);
|
hv_store(hv, "mask", 4, new_pv(ignore->mask), 0);
|
||||||
hv_store(hv, "servertag", 9, new_pv(ignore->servertag), 0);
|
hv_store(hv, "servertag", 9, new_pv(ignore->servertag), 0);
|
||||||
av = newAV();
|
av = newAV();
|
||||||
for (tmp = ignore->channels; *tmp != NULL; tmp++) {
|
if (ignore->channels != NULL) {
|
||||||
av_push(av, new_pv(*tmp));
|
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, "channels", 8, newRV_noinc((SV*)av), 0);
|
||||||
hv_store(hv, "pattern", 7, new_pv(ignore->pattern), 0);
|
hv_store(hv, "pattern", 7, new_pv(ignore->pattern), 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user