diff --git a/src/perl/common/Rawlog.xs b/src/perl/common/Rawlog.xs index c405bc37..73845287 100644 --- a/src/perl/common/Rawlog.xs +++ b/src/perl/common/Rawlog.xs @@ -19,9 +19,9 @@ void rawlog_get_lines(rawlog) Irssi::Rawlog rawlog PREINIT: - GSList *tmp; + GList *tmp; PPCODE: - for (tmp = rawlog->lines; tmp != NULL; tmp = tmp->next) { + for (tmp = rawlog->lines->tail; tmp != NULL; tmp = tmp->prev) { XPUSHs(sv_2mortal(new_pv(tmp->data))); }