Permalink
Browse files

Really fix no value commands.

  • Loading branch information...
1 parent c872ad1 commit 977ebab6b7e7cb69721a24d2084f43d8c4d7d8c7 @meh committed Apr 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/torchatd
View
@@ -148,7 +148,7 @@ class Torchatd
profile.add_temporary_buddy rest
when :status
- if rest && Torchat::Tor.valid_address?(rest) || Torchat::Tor.valid_id?(rest)
+ if rest && (Torchat::Tor.valid_address?(rest) || Torchat::Tor.valid_id?(rest))
if buddy = profile.buddies[rest]
connection.send_response "#{rest} STATUS #{buddy.status}"
end
@@ -168,7 +168,7 @@ class Torchatd
end
when :name
- if rest && Torchat::Tor.valid_address?(rest) || Torchat::Tor.valid_id?(rest)
+ if rest && (Torchat::Tor.valid_address?(rest) || Torchat::Tor.valid_id?(rest))
if buddy = profile.buddies[rest]
connection.send_response "#{rest} NAME #{buddy.name}"
end
@@ -177,7 +177,7 @@ class Torchatd
end
when :description
- if rest && Torchat::Tor.valid_address?(rest) || Torchat::Tor.valid_id?(rest)
+ if rest && (Torchat::Tor.valid_address?(rest) || Torchat::Tor.valid_id?(rest))
if buddy = profile.buddies[rest]
connection.send_response "#{rest} DESCRIPTION #{buddy.description}"
end

0 comments on commit 977ebab

Please sign in to comment.