Commit 1a9da946 authored by Guillaume Seguin's avatar Guillaume Seguin

Simplify default handler in pronsole

parent 7e1007ef
......@@ -661,15 +661,7 @@ class pronsole(cmd.Cmd):
pass
def default(self, l):
if l[0] in self.commandprefixes.upper():
if self.p and self.p.online:
if not self.p.loud:
self.log("SENDING:" + l)
self.p.send_now(l)
else:
self.logError(_("Printer is not online."))
return
elif l[0] in self.commandprefixes.lower():
if l[0].upper() in self.commandprefixes.upper():
if self.p and self.p.online:
if not self.p.loud:
self.log("SENDING:" + l.upper())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment