/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

+5

            } catch (Exception ex)
            {
                String error = ex.toString();
                if (error.contains("java.net.UnknownHostException"))
                {
                    foxbot.sendNotice(sender, String.format("%s is an unknown address!", args[0]));
                    return;
                }
                if (error.contains("java.lang.NumberFormatException"))
                {
                    foxbot.sendNotice(sender, String.format("%s isn't a number!", args[1]));
                    return;
                }
                if (error.contains("java.lang.IllegalArgumentException"))
                {
                    foxbot.sendNotice(sender, String.format("%s is too high a number for a port!", args[1]));
                    return;
                }
                foxbot.sendNotice(sender, foxbot.getUtils().colourise(String.format("&c%s", error)));
            }
            return;
 

Browse all snippets