diff --git a/src/hms123311.c b/src/hms123311.c
index b7db4d909b0f87a8aaac409c00cd97b2ae75ea6d..1ce7a4ddeeff34c36b9942e2c9e3aaacc8da33da 100644
--- a/src/hms123311.c
+++ b/src/hms123311.c
@@ -346,13 +346,14 @@ HMS_register (void)
 	snprintf(post, sizeof post,
 			"port=%d&"
 			"title=%s&"
-			"version=%d.%d",
+			"version=%d.%d.%d",
 
 			current_port,
 
 			title,
 
-			VERSION,
+			VERSION/100,
+			VERSION%100,
 			SUBVERSION
 	);
 
@@ -488,8 +489,9 @@ HMS_fetch_servers (msg_server_t *list, int room_number, int query_id)
 		doing_shit = 1;
 
 		snprintf(local_version, sizeof local_version,
-				"%d.%d",
-				VERSION,
+				"%d.%d.%d",
+				VERSION/100,
+				VERSION%100,
 				SUBVERSION
 		);