Module: Hector::Concerns::Authentication

Included in:
Hector::Connection
Defined in:
lib/hector/concerns/authentication.rb

Instance Method Summary collapse

Instance Method Details

#on_capObject



20
21
22
# File 'lib/hector/concerns/authentication.rb', line 20

def on_cap
  # Do nothing
end

#on_nickObject



15
16
17
18
# File 'lib/hector/concerns/authentication.rb', line 15

def on_nick
  @nickname = request.text
  authenticate
end

#on_passObject



10
11
12
13
# File 'lib/hector/concerns/authentication.rb', line 10

def on_pass
  @password = request.text
  authenticate
end

#on_userObject



4
5
6
7
8
# File 'lib/hector/concerns/authentication.rb', line 4

def on_user
  @username = request.args.first
  @realname = request.text
  authenticate
end