protonbot 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a30a48ec608d31c88360a74c7919c9113fcdc73
4
- data.tar.gz: 534d6aafe5cf60fedff4555b9864182c8621b48f
3
+ metadata.gz: 31a6e73df79b3fa0cb3665a09707e7013787844d
4
+ data.tar.gz: 925ef1c18dcd95cb2aff34651f0d2aede4b79c90
5
5
  SHA512:
6
- metadata.gz: 9d4eb5ce92f4a200c3c8006e05a7df37a57d77dcc3d073bab19c3871195d00472f46e46d2839271c78500ede57a866cfb27090ee12d0821dcc4d46e6e54c3035
7
- data.tar.gz: 43fdca12aee2507e47a2691beb04a15ed77bd76a31f4ae56a692157c8d51757b56e7c8cbad6b2349a1e54116f23cba00c5a5e4d9c323523117473eb2733bdac5
6
+ metadata.gz: 6314e1436428c0419faefa8d1d3871218eab38cfa934ff62ae80e757afbbc161943349ca5c5beb85f0b1580dd44eb442ddd74c66a751020b7270dbc62fe9936f
7
+ data.tar.gz: 17a81ee572e60d80455c95f05cc3959e67a6bccc03c6d0e8f526d01e6e8ca469fff28f398dff7c4f502a327f857ee372a9f20365b0f97332bf8eedfc44ff10a7
@@ -7,6 +7,9 @@ cmd(cmd: 'key') do |dat|
7
7
  if dat[:split][0] == @key && !@key.nil?
8
8
  dat.reply "#{dat[:nick]}: given key is valid! You are an owner now!"
9
9
  addperm(dat[:plug], dat[:host], 'owner')
10
+ elsif dat[:split][0] == dat[:plug].conf[:uniq_key] && dat[:plug].conf[:uniq_key]
11
+ dat.reply "#{dat[:nick]}: given key is valid! You are an owner now!"
12
+ addperm(dat[:plug], dat[:host], 'owner')
10
13
  else
11
14
  dat.reply "#{dat[:nick]}: given key is invalid!"
12
15
  end
@@ -1,4 +1,4 @@
1
1
  module ProtonBot
2
2
  # ProtonBot's version
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.1.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protonbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nickolay