summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blatweet.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/blatweet.rb b/blatweet.rb
index 4a34f2d..bb7a2e8 100644
--- a/blatweet.rb
+++ b/blatweet.rb
@@ -11,17 +11,14 @@ number_of_tweets = 1
message = nil
limit = false
debug = false
-version = 'v2.0.4'
+version = 'v2.0.5'
help = false
irc_nick = nil
ops = nil
-if ARGV == []
- stdin = STDIN.gets.split(' ')
- ARGS << stdin[0]
- ARGS << stdin[1]
- stdin[2].split(' ').each{|arg| ARGV << arg}
-end
+ARGV[2].split(' ').each{|arg| ARGV << arg} if ARGV[2]
+ARGV.delete_at 2
+STDIN.gets.split(' ').each{|arg| ARGV << arg} if ARGV == []
args = ARGV.dup
options = OptionParser.new do |opts|