lib/ayadn/workers.rb in ayadn-1.2.6 vs lib/ayadn/workers.rb in ayadn-1.2.7
- old
+ new
@@ -290,13 +290,16 @@
db = Databases.init(Dir.home + "/ayadn/accounts.db")
active = db['ACTIVE']
db[active][:handle]
end
- def self.remove_arobase_if_present(username)
- username = username.chars
- username.shift if username.first == "@"
- username.join
+ def self.remove_arobase_if_present args
+ args.map! do |username|
+ username = username.chars
+ username.shift if username.first == "@"
+ username.join
+ end
+ args
end
def self.extract_users(resp)
users_hash = {}
resp['data'].each do |item|