ircinch-identify 1.7.1
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +74 -0
- data/LICENSE.txt +19 -0
- data/README.md +164 -0
- data/lib/cinch/plugins/identify.rb +125 -0
- metadata +163 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e2feebc7fbd1e52e7817ae87cc184397841addcb777e44f42d076f1ac1a8bf97
|
|
4
|
+
data.tar.gz: 589c68c9ef500793c71f20928d22031c815f26a2264e060329b51b47a96c63e2
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: afb91f5a11dd69ed744d44d11e23c861c7f2705c80e578185bf0af8c90eca175f5c0ecc7105c455e65a44daa934ed72a5030b426d3cd8a8a2a7a8a97674be3e2
|
|
7
|
+
data.tar.gz: 99c0d321c19c2a906e8bfa103076a50d2e567bc9dbf8d7f9bd0dc858413e43d7268ded39f7eaf424134ae2732a53f61a043c9a6bf72c761969e8fb14aef238fb
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## ircinch-identify 1.7.1 (2026-11-23)
|
|
4
|
+
|
|
5
|
+
- Forked `cinch-identify` as `ircinch-identify`. The gem requires IRCinch 2.4.6 or later and Ruby 3.3 or later. Load it with `require "cinch/plugins/identify"` and register `Cinch::Plugins::Identify`.
|
|
6
|
+
- Fixed the `:identified` event for custom NickServ targets in `nick@host` form. The plugin now uses the same nickname for the login command and for matching the reply.
|
|
7
|
+
- Reused the challenge captured by IRCinch when handling QuakeNet `CHALLENGEAUTH` notices. Success handlers check the configured authentication type before looking up the service user.
|
|
8
|
+
- Added test coverage for every authentication mode, the QuakeNet HMAC response, and the service replies that trigger `:identified`.
|
|
9
|
+
- Updated gem metadata and README.
|
|
10
|
+
|
|
11
|
+
## Original cinch-identify releases
|
|
12
|
+
|
|
13
|
+
Release dates come from RubyGems. Change summaries are based on the original repository's commit history. [RubyGems release archive](https://rubygems.org/gems/cinch-identify/versions) · [Original repository](https://github.com/cinchrb/cinch-identify)
|
|
14
|
+
|
|
15
|
+
### 1.7.0 (2015-03-10)
|
|
16
|
+
|
|
17
|
+
- Extended `:service_name` to NickServ. The plugin used the nickname portion of a `nick@host` target when sending the login command.
|
|
18
|
+
- Matched UserServ success replies by nickname when `:service_name` included a host.
|
|
19
|
+
|
|
20
|
+
### 1.6.0 (2014-05-03)
|
|
21
|
+
|
|
22
|
+
- Recognized the Polish-language NickServ success reply and emitted `:identified`.
|
|
23
|
+
|
|
24
|
+
### 1.5.1 (2013-11-15)
|
|
25
|
+
|
|
26
|
+
- Added the MIT license to the gem metadata.
|
|
27
|
+
|
|
28
|
+
### 1.5.0 (2013-09-25)
|
|
29
|
+
|
|
30
|
+
- Added the `:dalnet` authentication mode for password-only login to DALnet's NickServ.
|
|
31
|
+
- Recognized OFTC's NickServ success reply and emitted `:identified`.
|
|
32
|
+
|
|
33
|
+
### 1.4.1 (2012-12-29)
|
|
34
|
+
|
|
35
|
+
- Recognized Rizon's NickServ success reply and emitted `:identified`.
|
|
36
|
+
- Updated the credential logging warning to include UserServ.
|
|
37
|
+
|
|
38
|
+
### 1.4.0 (2012-12-10)
|
|
39
|
+
|
|
40
|
+
- Added account-based UserServ authentication with `:userserv`, a configurable `:service_name`, and an `:identified` event on success.
|
|
41
|
+
- Restricted QuakeNet challenge responses to the `:secure_quakenet` and `:challengeauth` modes.
|
|
42
|
+
|
|
43
|
+
### 1.3.1 (2012-11-06)
|
|
44
|
+
|
|
45
|
+
- Fixed the QuakeNet success handler so it receives the message and can emit `:identified`.
|
|
46
|
+
|
|
47
|
+
### 1.3.0 (2012-06-27)
|
|
48
|
+
|
|
49
|
+
- Added the `:identified` event for successful NickServ logins and a handler for success notices from QuakeNet Q.
|
|
50
|
+
- Added a debug message for unknown authentication types and fixed formatting in the README's loading example.
|
|
51
|
+
|
|
52
|
+
### 1.2.0 (2012-06-17)
|
|
53
|
+
|
|
54
|
+
- Added password-only NickServ authentication when `:username` is omitted, for networks that identify the current nickname.
|
|
55
|
+
|
|
56
|
+
### 1.1.2 (2012-03-24)
|
|
57
|
+
|
|
58
|
+
- Updated the runtime dependency to the stable Cinch 2.x series (`~> 2.0`).
|
|
59
|
+
|
|
60
|
+
### 1.1.1 (2012-03-06)
|
|
61
|
+
|
|
62
|
+
- Ported to Cinch `2.0.0.pre.2`, updated the QuakeNet notice matcher, and relaxed the runtime dependency to `>= 2.0.0.pre.2`.
|
|
63
|
+
|
|
64
|
+
### 1.1.0 (2012-03-04)
|
|
65
|
+
|
|
66
|
+
- Added KreyNet authentication with `:kreynet` and switched QuakeNet challenge handling to a notice matcher.
|
|
67
|
+
|
|
68
|
+
### 1.0.0 (2012-03-04)
|
|
69
|
+
|
|
70
|
+
- Switched the runtime dependency from Cinch 1.x to `2.0.0.pre.1`.
|
|
71
|
+
|
|
72
|
+
### 0.0.1 (2011-01-29)
|
|
73
|
+
|
|
74
|
+
- Released the plugin for Cinch 1.x with automatic NickServ and QuakeNet authentication. QuakeNet supported both `auth` and `CHALLENGEAUTH`.
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (C) 2011 by Dominik Honnef
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# IRCinch Identify
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
`ircinch-identify` signs your IRCinch bot in to IRC services automatically
|
|
6
|
+
when it connects. It supports NickServ, UserServ, DALnet, QuakeNet, and KreyNet.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
The gem requires Ruby 3.3 or newer and IRCinch 2.4.6 or newer.
|
|
11
|
+
|
|
12
|
+
### RubyGems
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
gem install ircinch-identify
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Bundler
|
|
19
|
+
|
|
20
|
+
Add the plugin to your `Gemfile` and run `bundle install`.
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
gem "ircinch-identify", require: false
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
To use a local checkout, add `path: "../ircinch-identify"` to the gem entry
|
|
27
|
+
and adjust the path to match your checkout.
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
Load `ircinch` first, then require the plugin and add `Cinch::Plugins::Identify`
|
|
32
|
+
to your bot's plugin list. This example uses NickServ over TLS. Set `IRC_SERVER`
|
|
33
|
+
and `IRC_SERVICES_PASSWORD` in the bot's environment, and use your own nickname,
|
|
34
|
+
services account, and the network's TLS port.
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
require "ircinch"
|
|
38
|
+
require "cinch/plugins/identify"
|
|
39
|
+
|
|
40
|
+
bot = Cinch::Bot.new do
|
|
41
|
+
configure do |c|
|
|
42
|
+
c.server = ENV.fetch("IRC_SERVER")
|
|
43
|
+
c.port = 6697
|
|
44
|
+
c.ssl.use = true
|
|
45
|
+
c.ssl.verify = true
|
|
46
|
+
c.nick = "example_bot"
|
|
47
|
+
c.plugins.plugins = [Cinch::Plugins::Identify]
|
|
48
|
+
c.plugins.options[Cinch::Plugins::Identify] = {
|
|
49
|
+
type: :nickserv,
|
|
50
|
+
username: "my_account",
|
|
51
|
+
password: ENV.fetch("IRC_SERVICES_PASSWORD")
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
bot.start
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
For help with bot setup, see the [IRCinch Getting Started guide](https://github.com/ircinchrb/ircinch/blob/main/docs/getting_started.md).
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
Set `:type` to the authentication method your network supports.
|
|
64
|
+
|
|
65
|
+
| Type | Service and command |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| `:nickserv` | NickServ `identify`, with either an account name and password or a password alone |
|
|
68
|
+
| `:userserv` | UserServ `LOGIN` |
|
|
69
|
+
| `:dalnet` | DALnet NickServ `identify`, with a password alone |
|
|
70
|
+
| `:quakenet` | QuakeNet Q `auth`, which sends your password in the command |
|
|
71
|
+
| `:secure_quakenet` or `:challengeauth` | QuakeNet Q `CHALLENGEAUTH`, which sends an HMAC response |
|
|
72
|
+
| `:kreynet` | KreyNet K `LOGIN` |
|
|
73
|
+
|
|
74
|
+
- `:username` is your services account name. Omit it for password-only
|
|
75
|
+
NickServ setups that identify the bot's current nickname, such as dancer-ircd.
|
|
76
|
+
- `:password` is your services account password.
|
|
77
|
+
- `:service_name` overrides the service target for `:nickserv` or `:userserv`.
|
|
78
|
+
Their defaults are `"nickserv"` and `"UserServ"`, respectively. With a
|
|
79
|
+
`nick@host` target, NickServ sends the login to `nick` and UserServ sends it
|
|
80
|
+
to the full target. Both match replies by nickname.
|
|
81
|
+
|
|
82
|
+
The plugin emits `:identified` when it recognizes a success reply in NickServ,
|
|
83
|
+
UserServ, or QuakeNet mode. IRCinch handlers can listen with `on :identified`.
|
|
84
|
+
|
|
85
|
+
### Credential Logging
|
|
86
|
+
|
|
87
|
+
IRCinch can write the service password to logs in `:nickserv`, `:userserv`,
|
|
88
|
+
`:dalnet`, `:quakenet`, and `:kreynet` modes. TLS protects the connection. The
|
|
89
|
+
logging behavior also applies to commands sent over TLS.
|
|
90
|
+
|
|
91
|
+
### Libera.Chat and OFTC
|
|
92
|
+
|
|
93
|
+
Add the settings for your network inside the bot's `configure` block. IRCinch
|
|
94
|
+
handles SASL and TLS client certificates directly. Register
|
|
95
|
+
`Cinch::Plugins::Identify` only when using the NickServ fallback.
|
|
96
|
+
|
|
97
|
+
#### Libera.Chat
|
|
98
|
+
|
|
99
|
+
Use IRCinch's SASL PLAIN over TLS with your bot's registered account name and
|
|
100
|
+
password. Some Libera.Chat IP ranges require SASL during connection.
|
|
101
|
+
[Libera.Chat SASL guide](https://libera.chat/guides/sasl) ·
|
|
102
|
+
[Connection settings](https://libera.chat/guides/connect)
|
|
103
|
+
|
|
104
|
+
```ruby
|
|
105
|
+
c.server = "irc.libera.chat"
|
|
106
|
+
c.port = 6697
|
|
107
|
+
c.ssl.use = true
|
|
108
|
+
c.ssl.verify = true
|
|
109
|
+
c.sasl.mechanisms = [Cinch::SASL::Plain]
|
|
110
|
+
c.sasl.username = ENV.fetch("IRC_SERVICES_ACCOUNT")
|
|
111
|
+
c.sasl.password = ENV.fetch("IRC_SERVICES_PASSWORD")
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
For post-connect authentication, use the [NickServ example](#example) with
|
|
115
|
+
`IRC_SERVER=irc.libera.chat` and set `:username` to the bot's registered account
|
|
116
|
+
name. The plugin sends the account name followed by the password.
|
|
117
|
+
[Libera.Chat login guide](https://libera.chat/guides/registration#logging-in)
|
|
118
|
+
|
|
119
|
+
#### OFTC
|
|
120
|
+
|
|
121
|
+
Use CertFP for automatic identification. Register the certificate fingerprint
|
|
122
|
+
with NickServ and set `IRC_CLIENT_CERT` to the path of a PEM file containing
|
|
123
|
+
the client certificate and its RSA private key.
|
|
124
|
+
[OFTC CertFP guide](https://www.oftc.net/NickServ/CertFP/) ·
|
|
125
|
+
[Connection settings](https://www.oftc.net/)
|
|
126
|
+
|
|
127
|
+
```ruby
|
|
128
|
+
c.server = "irc.oftc.net"
|
|
129
|
+
c.port = 6697
|
|
130
|
+
c.ssl.use = true
|
|
131
|
+
c.ssl.verify = true
|
|
132
|
+
c.ssl.client_cert = ENV.fetch("IRC_CLIENT_CERT")
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
For password-based NickServ authentication, use the [NickServ example](#example)
|
|
136
|
+
with `IRC_SERVER=irc.oftc.net`, set `c.nick` to the bot's registered nickname,
|
|
137
|
+
and omit `:username` to send the password-only `IDENTIFY` command. OFTC's
|
|
138
|
+
two-argument form puts the password first.
|
|
139
|
+
[OFTC services FAQ](https://www.oftc.net/FAQ/Services/)
|
|
140
|
+
|
|
141
|
+
## Code of Conduct
|
|
142
|
+
|
|
143
|
+
Project discussions and contributions follow the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
144
|
+
|
|
145
|
+
## Contributing
|
|
146
|
+
|
|
147
|
+
Bug reports and pull requests are welcome. See the [changelog](CHANGELOG.md) for release history.
|
|
148
|
+
|
|
149
|
+
### Development
|
|
150
|
+
|
|
151
|
+
From a checkout of the repository, install the development dependencies and run
|
|
152
|
+
Minitest and Standard Ruby.
|
|
153
|
+
|
|
154
|
+
```sh
|
|
155
|
+
bundle install
|
|
156
|
+
bundle exec rake
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Run `bundle exec rake test` to run the tests on their own. SimpleCov writes
|
|
160
|
+
its HTML report to `coverage/index.html`.
|
|
161
|
+
|
|
162
|
+
## License
|
|
163
|
+
|
|
164
|
+
The gem is available under the [MIT License](LICENSE.txt).
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "openssl"
|
|
4
|
+
|
|
5
|
+
module Cinch
|
|
6
|
+
module Plugins
|
|
7
|
+
class Identify
|
|
8
|
+
include Cinch::Plugin
|
|
9
|
+
|
|
10
|
+
QUAKENET_SERVICE = "Q@CServe.quakenet.org"
|
|
11
|
+
QUAKENET_CHALLENGE_TYPES = %i[secure_quakenet challengeauth].freeze
|
|
12
|
+
QUAKENET_TYPES = [:quakenet, *QUAKENET_CHALLENGE_TYPES].freeze
|
|
13
|
+
CHALLENGE_PATTERN = /^CHALLENGE (.+?) .+$/
|
|
14
|
+
|
|
15
|
+
listen_to :connect, method: :identify
|
|
16
|
+
def identify(_message)
|
|
17
|
+
case config[:type]
|
|
18
|
+
when :quakenet
|
|
19
|
+
debug "Identifying with Q"
|
|
20
|
+
identify_quakenet
|
|
21
|
+
when :dalnet
|
|
22
|
+
debug "Identifying with Nickserv on DALnet"
|
|
23
|
+
identify_dalnet
|
|
24
|
+
when :secure_quakenet, :challengeauth
|
|
25
|
+
debug "Identifying with Q, using CHALLENGEAUTH"
|
|
26
|
+
identify_secure_quakenet
|
|
27
|
+
when :nickserv
|
|
28
|
+
debug "Identifying with NickServ"
|
|
29
|
+
identify_nickserv
|
|
30
|
+
when :kreynet
|
|
31
|
+
debug "Identifying with K on KreyNet"
|
|
32
|
+
identify_kreynet
|
|
33
|
+
when :userserv
|
|
34
|
+
debug "Identifying with UserServ"
|
|
35
|
+
identify_userserv
|
|
36
|
+
else
|
|
37
|
+
debug "Not going to identify with unknown type #{config[:type].inspect}"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
match(/^You are successfully identified as/, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
|
|
42
|
+
match(/^You are now identified for/, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
|
|
43
|
+
match(/^Password accepted - you are now recognized\./, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
|
|
44
|
+
match(/^Hasło przyjęte - jesteś zidentyfikowany/, use_prefix: false, use_suffix: false, react_on: :private, method: :identified_nickserv)
|
|
45
|
+
def identified_nickserv(m)
|
|
46
|
+
return unless config[:type] == :nickserv && m.user == User(nickserv_nick)
|
|
47
|
+
|
|
48
|
+
debug "Identified with NickServ"
|
|
49
|
+
@bot.handlers.dispatch(:identified, m)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
match(CHALLENGE_PATTERN, use_prefix: false, use_suffix: false, react_on: :notice, method: :challengeauth)
|
|
53
|
+
def challengeauth(m, challenge = nil)
|
|
54
|
+
return unless QUAKENET_CHALLENGE_TYPES.include?(config[:type]) && m.user&.nick == "Q"
|
|
55
|
+
|
|
56
|
+
challenge ||= m.message[CHALLENGE_PATTERN, 1]
|
|
57
|
+
return unless challenge
|
|
58
|
+
|
|
59
|
+
@bot.debug "Received challenge '#{challenge}'"
|
|
60
|
+
username = config[:username].irc_downcase(:rfc1459)
|
|
61
|
+
password_hash = OpenSSL::Digest::SHA256.hexdigest(config[:password][0, 10])
|
|
62
|
+
key = OpenSSL::Digest::SHA256.hexdigest("#{username}:#{password_hash}")
|
|
63
|
+
response = OpenSSL::HMAC.hexdigest("SHA256", key, challenge)
|
|
64
|
+
User(QUAKENET_SERVICE).send("CHALLENGEAUTH #{username} #{response} HMAC-SHA-256")
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
match(/^You are now logged in as/, use_prefix: false, use_suffix: false, react_on: :notice, method: :identified_quakenet)
|
|
68
|
+
def identified_quakenet(m)
|
|
69
|
+
return unless QUAKENET_TYPES.include?(config[:type]) && m.user == User("q")
|
|
70
|
+
|
|
71
|
+
debug "Identified with Q"
|
|
72
|
+
@bot.handlers.dispatch(:identified, m)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
match(/^You are now logged in as/, use_prefix: false, use_suffix: false, react_on: :notice, method: :identified_userserv)
|
|
76
|
+
def identified_userserv(m)
|
|
77
|
+
return unless config[:type] == :userserv && m.user == User(userserv_target.split("@", 2).first)
|
|
78
|
+
|
|
79
|
+
debug "Identified with UserServ"
|
|
80
|
+
@bot.handlers.dispatch(:identified, m)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
private
|
|
84
|
+
|
|
85
|
+
def identify_dalnet
|
|
86
|
+
User("Nickserv@services.dal.net").send("identify #{config[:password]}")
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def identify_quakenet
|
|
90
|
+
User(QUAKENET_SERVICE).send("auth #{config[:username]} #{config[:password]}")
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def identify_secure_quakenet
|
|
94
|
+
User(QUAKENET_SERVICE).send(:CHALLENGE)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def identify_nickserv
|
|
98
|
+
username = config[:username]
|
|
99
|
+
password = config[:password]
|
|
100
|
+
command = if username
|
|
101
|
+
"identify #{username} #{password}"
|
|
102
|
+
else
|
|
103
|
+
"identify #{password}"
|
|
104
|
+
end
|
|
105
|
+
User(nickserv_nick).send(command)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def identify_kreynet
|
|
109
|
+
User("K!k@krey.net").send("LOGIN #{config[:username]} #{config[:password]}")
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
def identify_userserv
|
|
113
|
+
User(userserv_target).send("LOGIN #{config[:username]} #{config[:password]}")
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def nickserv_nick
|
|
117
|
+
(config[:service_name] || "nickserv").split("@", 2).first
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
def userserv_target
|
|
121
|
+
config[:service_name] || "UserServ"
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ircinch-identify
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.7.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Matt Sias
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: ircinch
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 2.4.6
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 2.4.6
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: bundler-audit
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "0"
|
|
36
|
+
type: :development
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "0"
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: bundler-integrity
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
-
|
|
49
|
+
- ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: "0"
|
|
52
|
+
type: :development
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
-
|
|
57
|
+
- ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: "0"
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: minitest
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
-
|
|
65
|
+
- ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "0"
|
|
68
|
+
type: :development
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
-
|
|
73
|
+
- ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: "0"
|
|
76
|
+
- !ruby/object:Gem::Dependency
|
|
77
|
+
name: rake
|
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
-
|
|
81
|
+
- ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: "0"
|
|
84
|
+
type: :development
|
|
85
|
+
prerelease: false
|
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
-
|
|
89
|
+
- ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: "0"
|
|
92
|
+
- !ruby/object:Gem::Dependency
|
|
93
|
+
name: simplecov
|
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
-
|
|
97
|
+
- ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: "0"
|
|
100
|
+
type: :development
|
|
101
|
+
prerelease: false
|
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
103
|
+
requirements:
|
|
104
|
+
-
|
|
105
|
+
- ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: "0"
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: standard
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
-
|
|
113
|
+
- ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: "0"
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
-
|
|
121
|
+
- ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: "0"
|
|
124
|
+
description: "Signs IRCinch bots in to IRC services after connecting. Supports NickServ (including DALnet), UserServ, KreyNet's K, and QuakeNet's Q via AUTH or CHALLENGEAUTH."
|
|
125
|
+
email:
|
|
126
|
+
- mattsias@gmail.com
|
|
127
|
+
executables: []
|
|
128
|
+
extensions: []
|
|
129
|
+
extra_rdoc_files: []
|
|
130
|
+
files:
|
|
131
|
+
- CHANGELOG.md
|
|
132
|
+
- LICENSE.txt
|
|
133
|
+
- README.md
|
|
134
|
+
- lib/cinch/plugins/identify.rb
|
|
135
|
+
homepage: "https://github.com/ircinchrb/ircinch-identify"
|
|
136
|
+
licenses:
|
|
137
|
+
- MIT
|
|
138
|
+
metadata:
|
|
139
|
+
bug_tracker_uri: "https://github.com/ircinchrb/ircinch-identify/issues"
|
|
140
|
+
changelog_uri: "https://github.com/ircinchrb/ircinch-identify/blob/main/CHANGELOG.md"
|
|
141
|
+
documentation_uri: "https://rubydoc.info/gems/ircinch-identify"
|
|
142
|
+
source_code_uri: "https://github.com/ircinchrb/ircinch-identify"
|
|
143
|
+
rubygems_mfa_required: "true"
|
|
144
|
+
rdoc_options: []
|
|
145
|
+
require_paths:
|
|
146
|
+
- lib
|
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
-
|
|
150
|
+
- ">="
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: 3.3.0
|
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
|
+
requirements:
|
|
155
|
+
-
|
|
156
|
+
- ">="
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: "0"
|
|
159
|
+
requirements: []
|
|
160
|
+
rubygems_version: 4.1.0
|
|
161
|
+
specification_version: 4
|
|
162
|
+
summary: Automatic IRC services login for IRCinch bots
|
|
163
|
+
test_files: []
|