118 |
118 |
119 if config.debug then |
119 if config.debug then |
120 c:hook("incoming-raw", print); |
120 c:hook("incoming-raw", print); |
121 c:hook("outgoing-raw", print); |
121 c:hook("outgoing-raw", print); |
122 verse.set_log_handler(print); |
122 verse.set_log_handler(print); |
|
123 else |
|
124 verse.set_log_handler(print, {"info","warn","error"}); |
123 end |
125 end |
124 |
126 |
125 for _, plugin in ipairs(config.plugins or {}) do |
127 for _, plugin in ipairs(config.plugins or {}) do |
126 b:add_plugin(plugin); |
128 b:add_plugin(plugin); |
127 end |
129 end |