From ad6fbb82f84bb5f5c9bd58dbce9e7f70ae43908b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 26 Jul 2007 11:23:26 +0000 Subject: Mode-checking methohds for User too --- lib/rbot/irc.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3