Skip to content

Commit

Permalink
One more fix to message.sub regex in parse_command
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstimmerman committed Mar 22, 2007
1 parent e8468de commit d039085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jabber-bot/lib/jabber/bot.rb
Expand Up @@ -264,7 +264,7 @@ def parse_command(sender, message) #:nodoc:
if command[:is_public] or is_master
unless (message.strip =~ command[:regex]).nil?
response = command[:callback].call(sender,
message.sub(/^.+\s+/, ''))
message.sub(/^.[^\s]+\s+/, ''))

deliver(sender, response) unless response.nil?
return
Expand Down

0 comments on commit d039085

Please sign in to comment.