Mercurial > xib
comparison commands.py @ 168:d3b619cd60fb
minor fix of the output of the change-bridges-mode command
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Wed, 20 Jan 2010 17:44:51 +0100 |
parents | 266a6afb6b79 |
children | 6c4aaf8f3733 |
comparison
equal
deleted
inserted
replaced
167:f4997d50e93b | 168:d3b619cd60fb |
---|---|
146 | 146 |
147 found_bridges, ret = _find_bridges(bot, args.bridge_id) | 147 found_bridges, ret = _find_bridges(bot, args.bridge_id) |
148 for found_bridge in found_bridges: | 148 for found_bridge in found_bridges: |
149 r = found_bridge.changeMode(args.new_mode) | 149 r = found_bridge.changeMode(args.new_mode) |
150 if r: | 150 if r: |
151 ret += r | 151 ret += r+'\n' |
152 | 152 |
153 if ret: | 153 if ret: |
154 return ret | 154 return ret |
155 return 'Modes changed.' | 155 return 'Modes changed.' |
156 | 156 |