old_contents: import GlobalVars
  from ModuleInterface import ModuleInterface
  from SimpleHal import SimpleHAL
  
  
  class GraphemeLearning(ModuleInterface):
      help = "learns how to speak from your words."
  
      def onLoad(self):
          self.brain = SimpleHAL()
          self.brain.load("data/{}.brain".format(self.bot.server))
  
      def onUnload(self):
          self.brain.save("data/{}.brain".format(self.bot.server))
  
      def shouldTrigger(self, message):
          return True
  
      def onTrigger(self, message):
          msgList = message.split(" ")
          msgToUse = " ".join(msgList)
          msgToUse = msgToUse.replace(GlobalVars.CurrentNick, "")
          msgToUse = msgToUse.replace(GlobalVars.CurrentNick.lower(), "")
          if "www" not in msgToUse and "://" not in msgToUse:
              self.brain._learn(msgToUse)
new_contents: import GlobalVars
  from ModuleInterface import ModuleInterface
  from SimpleHal import SimpleHAL
  
  
  class GraphemeLearning(ModuleInterface):
      help = "learns how to speak from your words."
  
      def onLoad(self):
          self.brain = SimpleHAL()
          self.brain.load("data/{}.brain".format(self.bot.server))
  
      def onUnload(self):
          self.brain.save("data/{}.brain".format(self.bot.server))
  
      def shouldTrigger(self, message):
          return True
  
      def onTrigger(self, message):
          msgToUse = message.MessageString.replace(GlobalVars.CurrentNick, "")
          msgToUse = msgToUse.replace(GlobalVars.CurrentNick.lower(), "")
          if "www" not in msgToUse and "://" not in msgToUse:
              self.brain._learn(msgToUse)
subject: Fix learning