From 737441b7e6cc01308feebf7d9c090fb3ce4b053a Mon Sep 17 00:00:00 2001 From: Simon Vermeersch Date: Sun, 28 Sep 2014 16:35:21 +0200 Subject: [PATCH] Allows inputting of empty lines. --- src/server/serversession.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/serversession.py b/src/server/serversession.py index 094098176b..3498d74ffc 100644 --- a/src/server/serversession.py +++ b/src/server/serversession.py @@ -196,7 +196,9 @@ class ServerSession(Session): oob - this should hold a dictionary of oob command calls from the oob-supporting protocol. """ - if text: + #explicitly check for None since text can be an empty string, which is + #also valid + if text is not None: # this is treated as a command input #text = to_unicode(escape_control_sequences(text), encoding=self.encoding) # handle the 'idle' command