aboutsummaryrefslogtreecommitdiff
path: root/behaviors/BehaviorChain.py
diff options
context:
space:
mode:
Diffstat (limited to 'behaviors/BehaviorChain.py')
-rw-r--r--behaviors/BehaviorChain.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/behaviors/BehaviorChain.py b/behaviors/BehaviorChain.py
index 0170fa8..39f4402 100644
--- a/behaviors/BehaviorChain.py
+++ b/behaviors/BehaviorChain.py
@@ -29,6 +29,11 @@ class BehaviorChain(Behavior):
if hookRecurrence != []:
main_log.warn('Hook recurrences are not currently supported. Implement it\
yourself or bug russell')
- self.feedback[behaviorId] = recurrence
- return response
+ self.feedback[behaviorId] = recurrence
+ return (response, [])
+
+ def appendBehavior(behavior):
+ bid = compReg.registerComponent(behavior) #register behavior (will make
+ #a new id if there isn't one)
+ self['ChainedBehaviors'].append(bid)