mutters-ink-bot/src/main/java/com/rabidgremlin/mutters/bot/ink/StoryDecorator.java
@Override
  public void bindExternalFunction(String funcName, ExternalFunction func)
    throws Exception
  {
    try
    {
      super.unbindExternalFunction(funcName);
    }
    catch (Exception e)
    {
      if (e.getMessage().contains("has not been bound"))
      {
        // Intentional blank, if we get this it means the function has never been bound.
      }
      else
      {
        throw e;
      }
    }
    super.bindExternalFunction(funcName, func);
  }
/**
   * Binds the given external function. The function with the same name will be unbound first.
   */
Binds the given external function. The function with the same name will be unbound first.
Binds the given external function . The function with the same name will be unbound first .
@Override
  public void bindExternalFunction(String funcName, ExternalFunction func)
    throws Exception
  {
    try
    {
      super.unbindExternalFunction(funcName);
    }
    catch (Exception e)
    {
      if (e.getMessage().contains("has not been bound"))
      {
      }
      else
      {
        throw e;
      }
    }
    super.bindExternalFunction(funcName, func);
  }
@ Override public void bindExternalFunction ( String funcName , ExternalFunction func ) throws Exception { try { super . unbindExternalFunction ( funcName ) ; } catch ( Exception e ) { if ( e . getMessage ( ) . contains ( "has not been bound" ) ) { } else { throw e ; } } super . bindExternalFunction ( funcName , func ) ; }
Binds the given external function.
Binds the given external function .
// Intentional blank, if we get this it means the function has never been bound.