Class/Module Index [+]

Quicksearch

Irc::Bot::Auth

This module contains the actual Authentication stuff

Public Class Methods

botowner() click to toggle source

Returns the only instance of BotOwnerClass

# File lib/rbot/botuser.rb, line 629
def Auth.botowner
  return BotOwnerClass.instance
end
defaultbotuser() click to toggle source

Returns the only instance of DefaultBotUserClass

# File lib/rbot/botuser.rb, line 605
def Auth.defaultbotuser
  return DefaultBotUserClass.instance
end
manager() click to toggle source

Returns the only instance of ManagerClass

# File lib/rbot/botuser.rb, line 923
def Auth.manager
  return ManagerClass.instance
end
random_password(l=8) click to toggle source

Generate a random password of length l

# File lib/rbot/botuser.rb, line 56
def Auth.random_password(l=8)
  pwd = ""
  l.times do
    pwd << (rand(26) + (rand(2) == 0 ? 65 : 97) ).chr
  end
  return pwd
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.