diff --git a/src/perl/common/Ignore.xs b/src/perl/common/Ignore.xs
index 2a053b16..e4452c78 100644
--- a/src/perl/common/Ignore.xs
+++ b/src/perl/common/Ignore.xs
@@ -8,7 +8,7 @@ ignores()
 PREINIT:
 	GSList *tmp;
 PPCODE:
-	for (tmp = servers; tmp != NULL; tmp = tmp->next) {
+	for (tmp = ignores; tmp != NULL; tmp = tmp->next) {
 		XPUSHs(sv_2mortal(plain_bless(tmp->data, "Irssi::Ignore")));
 	}