Permalink
Browse files

added missing away command file

  • Loading branch information...
1 parent b70b754 commit 3441f57b97b4308b2f6b22aa1d45b95f414cfabc @leedo leedo committed Oct 16, 2010
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/hector/commands/away.rb
@@ -0,0 +1,16 @@
+module Hector
+ module Commands
+ module Away
+ def on_away
+ away_message = request.args.first
+ if away_message and !away_message.empty?
+ @away_message = away_message
+ respond_with("306", {:text => "You have been marked as being away"})
+ else
+ @away_message = nil
+ respond_with("305", {:text => "You are no longer marked as being away"})
+ end
+ end
+ end
+ end
+end

0 comments on commit 3441f57

Please sign in to comment.