aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-09-27 23:50:51 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-09-27 23:50:51 +0000
commit978c1f7b9ebc31216cd745fcc9b332fbe0a75186 (patch)
treeb9e3132664c0cdf159d6dd69b4946f43fdc17c1c
parentMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/rbot-gentoo (diff)
downloadrbot-gentoo-978c1f7b9ebc31216cd745fcc9b332fbe0a75186.tar.gz
rbot-gentoo-978c1f7b9ebc31216cd745fcc9b332fbe0a75186.tar.bz2
rbot-gentoo-978c1f7b9ebc31216cd745fcc9b332fbe0a75186.zip
Fixup awol channels.
-rw-r--r--gentoo-fixup.rb5
1 files changed, 4 insertions, 1 deletions
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