Class: Irc::Bot::Auth::BotOwnerClass

Inherits:
BotUser show all
Includes:
Singleton
Defined in:
/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb

Overview

This is the BotOwner: he can do everything

Instance Attribute Summary

Attributes inherited from BotUser

#login_by_mask, #netmasks, #password, #perm, #perm_temp, #transient, #username

Instance Method Summary (collapse)

Methods included from Singleton

#_dump

Methods inherited from BotUser

#add_netmask, #autologin=, #autologin?, #default?, #delete_netmask, #from_hash, #inspect, #knows?, #login, #login_by_mask?, #make_permanent, #owner?, #permanent=, #permanent?, #reset_autologin, #reset_login_by_mask, #reset_netmasks, #reset_password, #reset_permission, #reset_temp_permission, sanitize_username, #set_permission, #set_temp_permission, #to_hash, #to_s, #transient?

Constructor Details

- (BotOwnerClass) initialize

Returns a new instance of BotOwnerClass



616
617
618
619
620
# File '/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb', line 616

def initialize
  @login_by_mask = false
  @autologin = true
  super("owner")
end

Instance Method Details

- (Boolean) permit?(cmd, chan = nil)

Returns:

  • (Boolean)


622
623
624
# File '/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb', line 622

def permit?(cmd, chan=nil)
  return true
end