summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/irc.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 206cc98f..38c4a3e9 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -970,6 +970,17 @@ module Irc
end
end
+ def modes_on(channel)
+ channel.modes_of(self)
+ end
+
+ def is_op?(channel)
+ channel.has_op?(self)
+ end
+
+ def is_voice?(channel)
+ channel.has_voice?(self)
+ end
end