Permalink
Browse files

Fix offline message matching regex

  • Loading branch information...
1 parent f2a0c82 commit 3c9d27a7dd7109dbdb0213cc65fed13b846e18df @meh committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/torchat.rb
View
@@ -107,7 +107,7 @@ def start (&block)
if @offline_messages
Dir["#@offline_messages/*_offline.txt"].each {|path|
- buddy = @session.buddies[path[/^(.*?)_/, 1]]
+ buddy = @session.buddies[path[/([^\/_]+)_offline\.txt$/, 1]]
File.open(path) {|f|
current = ''

0 comments on commit 3c9d27a

Please sign in to comment.