cinch-identify 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -0
- data/lib/cinch/plugins/identify.rb +19 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -20,10 +20,20 @@ module Cinch
|
|
20
20
|
when :kreynet
|
21
21
|
debug "Identifying with K on KreyNet"
|
22
22
|
identify_kreynet
|
23
|
+
else
|
24
|
+
debug "Not going to identify with unknown type #{config[:type].inspect}"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
match(/^You are now identified for/, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
|
29
|
+
def identified_nickserv(m)
|
30
|
+
if m.user == User("nickserv") && config[:type] == :nickserv
|
31
|
+
debug "Identified with NickServ"
|
32
|
+
@bot.handlers.dispatch :identified, m
|
23
33
|
end
|
24
34
|
end
|
25
35
|
|
26
|
-
match(/^CHALLENGE (.+?) (.+)$/, use_prefix: false, use_suffix: false, react_on: :notice)
|
36
|
+
match(/^CHALLENGE (.+?) (.+)$/, use_prefix: false, use_suffix: false, react_on: :notice, method: :challengeauth)
|
27
37
|
def challengeauth(m)
|
28
38
|
return unless m.user && m.user.nick == "Q"
|
29
39
|
if match = m.message.match(/^CHALLENGE (.+?) (.+)$/)
|
@@ -39,6 +49,14 @@ module Cinch
|
|
39
49
|
end
|
40
50
|
end
|
41
51
|
|
52
|
+
match(/^You are now logged in as/, use_prefix: false, use_suffix: false, react_on: :notice, method: :identified_quakenet)
|
53
|
+
def identified_quakenet
|
54
|
+
if m.user == User("q") && [:quakenet, :secure_quakenet, :challengeauth].include?(config[:type])
|
55
|
+
debug "Identified with Q"
|
56
|
+
@bot.handlers.dispatch(:identified, m)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
42
60
|
private
|
43
61
|
def identify_quakenet
|
44
62
|
User("Q@CServe.quakenet.org").send("auth %s %s" % [config[:username], config[:password]])
|
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
|
+
version: 1.3.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-06-
|
12
|
+
date: 2012-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cinch
|
16
|
-
requirement: &
|
16
|
+
requirement: &10153800 !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: *
|
24
|
+
version_requirements: *10153800
|
25
25
|
description: A plugin allowing Cinch bots to automatically identify with services.
|
26
26
|
Supported are NickServ, QuakeNet and KreyNet.
|
27
27
|
email:
|