réplica de
				https://gitlab.com/ceda_ei/Quadnite-Bot
				synced 2025-10-31 17:20:05 +01:00 
			
		
		
		
	Remove /g from regex
Este commit está contenido en:
		| @@ -216,11 +216,11 @@ function kys() { | |||||||
|   if (isset($decoded->{'message'}->{'reply_to_message'})) { |   if (isset($decoded->{'message'}->{'reply_to_message'})) { | ||||||
|     if (isset($decoded->{'message'}->{'reply_to_message'}->{'from'}->{'username'})){ |     if (isset($decoded->{'message'}->{'reply_to_message'}->{'from'}->{'username'})){ | ||||||
|       $username = '@' . $decoded->{'message'}->{'reply_to_message'}->{'from'}->{'username'}; |       $username = '@' . $decoded->{'message'}->{'reply_to_message'}->{'from'}->{'username'}; | ||||||
|       $random_kys = preg_replace('/##name##/g', $username, $random_kys); |       $random_kys = preg_replace('/##name##/', $username, $random_kys); | ||||||
|     } |     } | ||||||
|     else { |     else { | ||||||
|       $first_name = $decoded->{'message'}->{'reply_to_message'}->{'from'}->{'first_name'}; |       $first_name = $decoded->{'message'}->{'reply_to_message'}->{'from'}->{'first_name'}; | ||||||
|       $random_kys = preg_replace('/##name##/g', $first_name, $random_kys); |       $random_kys = preg_replace('/##name##/', $first_name, $random_kys); | ||||||
|     } |     } | ||||||
|     send_text($random_kys); |     send_text($random_kys); | ||||||
|   } |   } | ||||||
|   | |||||||
		Referencia en una nueva incidencia
	
	Block a user