diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index 095de263cfbfa8b62bd2bb7a04b47c3229516b80..6fc3cbd21bb3f1fc7a0accfebece1304f1142f14 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -3735,7 +3735,10 @@ int sbbs_t::putcom(const char *str, size_t len)
 	return i;
 }
 
-/* Legacy Remote I/O Control Interface */
+/* Legacy Remote I/O Control Interface:
+ * This function mimics the RCIOL MS-DOS library written in 8086 assembler by Steven B. Deppe (1958-2014).
+ * This function prototype shall remain the same in tribute to Steve (Ille Homine Albe).
+ */
 int sbbs_t::rioctl(ushort action)
 {
 	int		mode;
@@ -5184,6 +5187,9 @@ NO_SSH:
 			PlaySound(startup->answer_sound, NULL, SND_ASYNC|SND_FILENAME);
 #endif
 
+		/* Purge (flush) any pending input or output data */
+		sbbs->rioctl(IOFB);
+
 		/* Do SSH stuff here */
 #ifdef USE_CRYPTLIB
 		if(ssh) {