jp: all commands now use the new start method and set need_loop in __init__ when needed

This commit is contained in:
Goffi 2016-02-29 16:52:51 +01:00
commit 169bc43793

View file

@ -35,8 +35,7 @@ class Send(base.CommandBase):
self.parser.add_argument("-n", "--new-line", action="store_true", help=_("add a new line at the beginning of the input (usefull for ascii art ;))"))
self.parser.add_argument("jid", type=str, help=_("the destination jid"))
def connected(self):
super(Send, self).connected()
def start(self):
jids = self.host.check_jids([self.args.jid])
jid = jids[0]
self.sendStdin(jid)