Browse Source

central recognizes . in users

Paul Klumpp 12 years ago
parent
commit
0b54b67416
1 changed files with 3 additions and 3 deletions
  1. 3 3
      central.rb

+ 3 - 3
central.rb

@@ -50,17 +50,17 @@ end
 def work(line)
 	#put_log "GOT LINE: #{line}"
 	
-	line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
 	
 	fromto = ""
 	from = ""
 	cmd = ""
 	payload = ""
 	
-	if not $& == nil
+	if line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
+	
 		line = $1
 		
-		if line =~ /^(from|to):([a-zA-Z_]+): (.+)/
+		if line =~ /^(from|to):([a-zA-Z\._]+): (.+)/
 			fromto = $1
 			from = $2
 			line = $3