Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
This might have broken but its ok now
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Sep 15, 2017
1 parent cd4fb1d commit 2a02095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modifyconfig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def config(m, pass, option)
def addowner(m, pass, owner)
if pass == CONFIG['modifypass']
d = YAML.load_file('config.yaml')
d['ownerhost'] = "#{d['ownerhost']} || m.user.host.to_s"
d['ownerhost'] = "#{d['ownerhost']} || #{m.user.host.to_s}"
File.open('config.yaml', 'w') { |f| f.write d.to_yaml }
m.reply "Added `#{owner}` to the list of owners! Run `!restart restartonly` to put changes into action!"
else
Expand Down

0 comments on commit 2a02095

Please sign in to comment.