Advertisement
Guest User

Untitled

a guest
Aug 26th, 2015
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1.                 try {
  2.                     call_user_func($listener['callback'], $event);
  3.                     $count++;
  4.                 }
  5.                 catch (\Exception $e)
  6.                 {
  7.                    
  8.                     // No module to kick..? Well, nothing to catch... Re-throw.
  9.                     if (!($listener['module'] instanceof BaseModule))
  10.                         throw $e;
  11.  
  12.                     // Kick the module from the stack. Will be handled in the bot itself.
  13.                     throw new ModuleCrashedException($listener['module']);
  14.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement