+ # filter out non-printables
+ each_user.partial_input = filter(lambda x: x>=' ' and x<='~', each_user.partial_input)
+
+ # strip off extra whitespace
+ each_user.partial_input = string.strip(each_user.partial_input)
+
+ # put on the end of the queue
+ each_user.input_queue.append(each_user.partial_input)
+
+ # reset the held partial input
+ each_user.partial_input = ""
+
+ # pass first item in the input
+ # queue to the main handler
+ muffcmds.handle_user_input(each_user, each_user.input_queue[0])
+
+ # then remove it from the queue
+ each_user.input_queue.remove(each_user.input_queue[0])