cinch-identify 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Identify plugin
2
2
 
3
3
  This plugin allows Cinch to automatically identify with services.
4
- Currently, QuakeNet, KreyNet and all networks using NickServ are
4
+ Currently, DALnet, QuakeNet, KreyNet and all networks using NickServ are
5
5
  supported.
6
6
 
7
7
  For QuakeNet, both the normal _auth_ and the more secure
@@ -36,7 +36,7 @@ None.
36
36
  ## Options
37
37
  ### :type
38
38
  The type of authentication. `:nickserv` for NickServ, `:userserv` for
39
- UserServ, `:quakenet` for the insecure _auth_ command on QuakeNet and
39
+ UserServ, `:dalnet` for DALnet, `:quakenet` for the insecure _auth_ command on QuakeNet and
40
40
  `:secure_quakenet` or `:challengeauth` for the more secure
41
41
  _challengeauth_. `:kreynet` for KreyNet.
42
42
 
@@ -57,5 +57,5 @@ to `"UserServ"`.
57
57
  Check the install instructions for an example configuration.
58
58
 
59
59
  ## Warning
60
- Be warned that, when using the `:nickserv`, `:userserv`, `:quakenet`
60
+ Be warned that, when using the `:nickserv`, `:dalnet`, `:userserv`, `:quakenet`
61
61
  or `:kreynet` types, the password will show up in the logs.
@@ -11,6 +11,9 @@ module Cinch
11
11
  when :quakenet
12
12
  debug "Identifying with Q"
13
13
  identify_quakenet
14
+ when :dalnet
15
+ debug "Identifying with Nickserv on DALnet"
16
+ identify_dalnet
14
17
  when :secure_quakenet, :challengeauth
15
18
  debug "Identifying with Q, using CHALLENGEAUTH"
16
19
  identify_secure_quakenet
@@ -28,6 +31,7 @@ module Cinch
28
31
  end
29
32
  end
30
33
 
34
+ match(/^You are successfully identified as/, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
31
35
  match(/^You are now identified for/, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
32
36
  match(/^Password accepted - you are now recognized\./, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
33
37
  def identified_nickserv(m)
@@ -73,6 +77,10 @@ module Cinch
73
77
  end
74
78
 
75
79
  private
80
+ def identify_dalnet
81
+ User("Nickserv@services.dal.net").send("identify %s" % [config[:password]])
82
+ end
83
+
76
84
  def identify_quakenet
77
85
  User("Q@CServe.quakenet.org").send("auth %s %s" % [config[:username], config[:password]])
78
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-identify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-29 00:00:00.000000000 Z
12
+ date: 2013-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cinch
16
- requirement: &25393280 !ruby/object:Gem::Requirement
16
+ requirement: &14289440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *25393280
24
+ version_requirements: *14289440
25
25
  description: A plugin allowing Cinch bots to automatically identify with services.
26
26
  Supported are NickServ, QuakeNet and KreyNet.
27
27
  email: