Parcourir la source

central recognizes . in users

Paul Klumpp il y a 12 ans
Parent
commit
0b54b67416
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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