summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-07-26 11:23:26 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-07-26 11:23:26 +0000
commitad6fbb82f84bb5f5c9bd58dbce9e7f70ae43908b (patch)
tree349733693a0abac6ed4ed7eee58e03d314dc4b68 /lib
parent463627505d21d4066a93190def1921f14aacf11b (diff)
Mode-checking methohds for User too
Diffstat (limited to 'lib')
-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