Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix in split words
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdke committed May 27, 2014
1 parent b3b0269 commit 5f7bbf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/ayadn/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def search(words, options)
splitted = splitter_all words
@api.search_channels splitted.join(','), options
elsif options[:messages]
words = words.split(',')
channel_id = get_channel_id_from_alias(words[0])
words.shift
splitted = splitter_all words.join(' ')
Expand Down
6 changes: 1 addition & 5 deletions lib/ayadn/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,7 @@ def hashtag(hashtag)
option :channels, type: :boolean, desc: 'Search for App.net channels by searching WORD(S) in their description.'
option :annotations, type: :boolean, desc: 'Search for posts containing a specific App.net annotation.'
def search(*words)
if options[:messages]
Action.new.search(words, options)
else
Action.new.search(words.join(","), options)
end
Action.new.search(words.join(","), options)
end

desc "settings", "List current Ayadn settings (-sg)"
Expand Down

0 comments on commit 5f7bbf9

Please sign in to comment.