lib/scamp.rb in scamp-0.2.1 vs lib/scamp.rb in scamp-1.0.0
- old
+ new
@@ -44,12 +44,12 @@
def behaviour &block
instance_eval &block
end
- def connect!(room_list)
+ def connect!(room_list, &blk)
logger.info "Starting up"
- connect(api_key, room_list)
+ connect(api_key, room_list, &blk)
end
def command_list
matchers.map{|m| [m.trigger, m.conditions] }
end