From 978c1f7b9ebc31216cd745fcc9b332fbe0a75186 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 27 Sep 2010 23:50:51 +0000 Subject: Fixup awol channels. --- gentoo-fixup.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gentoo-fixup.rb b/gentoo-fixup.rb index 6ff1243..9c995f0 100644 --- a/gentoo-fixup.rb +++ b/gentoo-fixup.rb @@ -94,13 +94,16 @@ class GentooFixupPlugin < Plugin def reply_actual_channels(m, channels) m.reply "Actual channels (#{channels.size}): " + channels.to_a.sort.join(', ') end + def say_awol_channels(m, params) @action = 'AWOL' @old_m = m do_lookup(m, params) end + def reply_awol_channels(m, channels) - m.reply "AWOL channels (#{channels.size}): " + channels.to_a.sort.join(', ') + missing_channels = awol_channels(channels).to_a.sort + m.reply "AWOL channels (#{missing_channels.size}): " + missing_channels.to_a.sort.join(', ') end -- cgit v1.2.3-65-gdbad