Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- call_user_func($listener['callback'], $event);
- $count++;
- }
- catch (\Exception $e)
- {
- // No module to kick..? Well, nothing to catch... Re-throw.
- if (!($listener['module'] instanceof BaseModule))
- throw $e;
- // Kick the module from the stack. Will be handled in the bot itself.
- throw new ModuleCrashedException($listener['module']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement