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)
 def work(line)
 	#put_log "GOT LINE: #{line}"
 	#put_log "GOT LINE: #{line}"
 	
 	
-	line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
 	
 	
 	fromto = ""
 	fromto = ""
 	from = ""
 	from = ""
 	cmd = ""
 	cmd = ""
 	payload = ""
 	payload = ""
 	
 	
-	if not $& == nil
+	if line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
+	
 		line = $1
 		line = $1
 		
 		
-		if line =~ /^(from|to):([a-zA-Z_]+): (.+)/
+		if line =~ /^(from|to):([a-zA-Z\._]+): (.+)/
 			fromto = $1
 			fromto = $1
 			from = $2
 			from = $2
 			line = $3
 			line = $3