Commit 703eab75 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup

parent b4316cbd
...@@ -825,25 +825,25 @@ class pronsole(cmd.Cmd): ...@@ -825,25 +825,25 @@ class pronsole(cmd.Cmd):
self.log("! os.listdir('.')") self.log("! os.listdir('.')")
def default(self, l): def default(self, l):
if(l[0] in self.commandprefixes.upper()): if l[0] in self.commandprefixes.upper():
if(self.p and self.p.online): if self.p and self.p.online:
if(not self.p.loud): if not self.p.loud:
self.log("SENDING:"+l) self.log("SENDING:"+l)
self.p.send_now(l) self.p.send_now(l)
else: else:
self.log(_("Printer is not online.")) self.log(_("Printer is not online."))
return return
elif(l[0] in self.commandprefixes.lower()): elif l[0] in self.commandprefixes.lower():
if(self.p and self.p.online): if self.p and self.p.online:
if(not self.p.loud): if not self.p.loud:
self.log("SENDING:"+l.upper()) self.log("SENDING:"+l.upper())
self.p.send_now(l.upper()) self.p.send_now(l.upper())
else: else:
self.log(_("Printer is not online.")) self.log(_("Printer is not online."))
return return
elif(l[0] == "@"): elif l[0] == "@":
if(self.p and self.p.online): if self.p and self.p.online:
if(not self.p.loud): if not self.p.loud:
self.log("SENDING:"+l[1:]) self.log("SENDING:"+l[1:])
self.p.send_now(l[1:]) self.p.send_now(l[1:])
else: else:
......
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