def _enum(**enums):
    return type('Enum', (), enums)

ModeType = _enum(LIST=0, PARAM_SET=1, PARAM_UNSET=2, NO_PARAM=3)
ModuleLoadType = _enum(LOAD=0, UNLOAD=1, ENABLE=2, DISABLE=3)

def isNumber(s):
    try:
        float(s)
        return True
    except ValueError:
        return False

def parseUserPrefix(prefix):
    if "!" in prefix:
        nick = prefix[:prefix.find("!")]
        ident = prefix[prefix.find("!") + 1:prefix.find("@")]
        host = prefix[prefix.find("@") + 1:]
        return nick, ident, host

    # Not all "users" have idents and hostnames
    nick = prefix
    return nick, None, None

def _enum(**enums):
    return type('Enum', (), enums)

ModeType = _enum(LIST=0, PARAM_SET=1, PARAM_UNSET=2, NO_PARAM=3)
ModuleLoadType = _enum(LOAD=0, UNLOAD=1, ENABLE=2, DISABLE=3)

def isNumber(s):
    try:
        float(s)
        return True
    except ValueError:
        return False

def parseUserPrefix(prefix):
    if "!" in prefix:
        nick = prefix[:prefix.find("!")]
        ident = prefix[prefix.find("!") + 1:prefix.find("@")]
        host = prefix[prefix.find("@") + 1:]
        return nick, ident, host

    # Not all "users" have idents and hostnames
    nick = prefix
    return nick, None, None

def networkName(bot, server):
    return bot.servers[server].supportHelper.network

Add a helper function to grab network names
Add a helper function to grab network names

  def _enum(**enums):
      return type('Enum', (), enums)
  
  ModeType = _enum(LIST=0, PARAM_SET=1, PARAM_UNSET=2, NO_PARAM=3)
  ModuleLoadType = _enum(LOAD=0, UNLOAD=1, ENABLE=2, DISABLE=3)
  
  def isNumber(s):
      try:
          float(s)
          return True
      except ValueError:
          return False
  
  def parseUserPrefix(prefix):
      if "!" in prefix:
          nick = prefix[:prefix.find("!")]
          ident = prefix[prefix.find("!") + 1:prefix.find("@")]
          host = prefix[prefix.find("@") + 1:]
          return nick, ident, host
  
      # Not all "users" have idents and hostnames
      nick = prefix
      return nick, None, None
  
+ def networkName(bot, server):
+     return bot.servers[server].supportHelper.network
+ 
Add a helper function to grab network names
## Code Before:
def _enum(**enums):
    return type('Enum', (), enums)

ModeType = _enum(LIST=0, PARAM_SET=1, PARAM_UNSET=2, NO_PARAM=3)
ModuleLoadType = _enum(LOAD=0, UNLOAD=1, ENABLE=2, DISABLE=3)

def isNumber(s):
    try:
        float(s)
        return True
    except ValueError:
        return False

def parseUserPrefix(prefix):
    if "!" in prefix:
        nick = prefix[:prefix.find("!")]
        ident = prefix[prefix.find("!") + 1:prefix.find("@")]
        host = prefix[prefix.find("@") + 1:]
        return nick, ident, host

    # Not all "users" have idents and hostnames
    nick = prefix
    return nick, None, None

## Instruction:
Add a helper function to grab network names
## Code After:
def _enum(**enums):
    return type('Enum', (), enums)

ModeType = _enum(LIST=0, PARAM_SET=1, PARAM_UNSET=2, NO_PARAM=3)
ModuleLoadType = _enum(LOAD=0, UNLOAD=1, ENABLE=2, DISABLE=3)

def isNumber(s):
    try:
        float(s)
        return True
    except ValueError:
        return False

def parseUserPrefix(prefix):
    if "!" in prefix:
        nick = prefix[:prefix.find("!")]
        ident = prefix[prefix.find("!") + 1:prefix.find("@")]
        host = prefix[prefix.find("@") + 1:]
        return nick, ident, host

    # Not all "users" have idents and hostnames
    nick = prefix
    return nick, None, None

def networkName(bot, server):
    return bot.servers[server].supportHelper.network
