old_contents: from IRCMessage import IRCMessage
  from IRCResponse import IRCResponse, ResponseType
  from Function import Function
  import WebUtils
  
  import re
  from bs4 import BeautifulSoup
  
  class Instantiate(Function):
      Help = "down(?) <url> - asks DownForEveryoneOrJustMe.com if the given url is down for everyone or just you"
      
      def GetResponse(self, message):
          if message.Type != 'PRIVMSG':
              return
          
          match = re.search('down\??', message.Command, re.IGNORECASE)
          if not match:
              return
          
          if len(message.ParameterList) == 0:
              return IRCResponse(ResponseType.Say, "You didn't give a URL! Usage: {0}".format(self.Help), message.ReplyTo)
  
          url = message.Parameters
          
          webPage = WebUtils.FetchURL('http://www.downforeveryoneorjustme.com/{0}'.format(url))
          root = BeautifulSoup(webPage.Page)
          downText = root.find('div').text.splitlines()[1].strip()
          
          return IRCResponse(ResponseType.Say, downText, message.ReplyTo)
  
  
new_contents: from IRCMessage import IRCMessage
  from IRCResponse import IRCResponse, ResponseType
  from Function import Function
  import WebUtils
  
  import re
  from bs4 import BeautifulSoup
  
  class Instantiate(Function):
      Help = "down(?) <url> - asks DownForEveryoneOrJustMe.com if the given url is down for everyone or just you"
      
      def GetResponse(self, message):
          if message.Type != 'PRIVMSG':
              return
          
          match = re.search('^down\??$', message.Command, re.IGNORECASE)
          if not match:
              return
          
          if len(message.ParameterList) == 0:
              return IRCResponse(ResponseType.Say, "You didn't give a URL! Usage: {0}".format(self.Help), message.ReplyTo)
  
          url = message.Parameters
          
          webPage = WebUtils.FetchURL('http://www.downforeveryoneorjustme.com/{0}'.format(url))
          root = BeautifulSoup(webPage.Page)
          downText = root.find('div').text.splitlines()[1].strip()
          
          return IRCResponse(ResponseType.Say, downText, message.ReplyTo)
  
  
subject: Fix Down call pattern