Skip to content

Commit

Permalink
Fixes token bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmcbride committed Nov 6, 2009
1 parent f1384d4 commit 9fee7fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trakbot.rb
Expand Up @@ -89,6 +89,7 @@ def initialize(options)
# Here you can modify the trigger phrase
add_actions({
/^#{@options[:nick]}\s+token\s*(\S+)$/ => lambda {|e,m|
ensure_user e.from
@state[:users][e.from][:token] = m[1]
save_state
reply e, "Got it, #{e.from}."
Expand Down

0 comments on commit 9fee7fa

Please sign in to comment.