public
Description: An IRC bot that keeps track of who is who and makes links between users.
Homepage:
Clone URL: git://github.com/seadog/ybttre.git
Click here to lend your support to: ybttre and make a donation at www.pledgie.com !
ybttre / Admin.rb
100644 22 lines (19 sloc) 0.319 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Admins
  attr_accessor :admins
  def initialize admins
    @admins = admins
  end
 
  def admin? ident, host
    check = ident+'@'+host
    retval = false
    @admins.each do |admin|
      if admin == check
        retval = true
        break
      end
    end
    retval
  end
 
  def command com, *args
  end
end