old_contents: from pyheufybot.user import IRCUser
  from pyheufybot.channel import IRCChannel
  
  class IRCMessage(object):
      def __init__(self, messageType, user, channel, messageText, serverInfo):
          self.messageType = messageType
          self.user = user
          self.channel = channel
          self.messageText = messageText
          self.serverInfo = serverInfo
          
          self.replyTo = ""
  
          if not user and channel:
              # This message does not have a user or a channel. It's probably a server reply
              self.replyTo = ""
          elif not channel:
              self.replyTo = user.nickname
          else:
              self.replyTo = channel.name
  
new_contents: from pyheufybot.user import IRCUser
  from pyheufybot.channel import IRCChannel
  
  class IRCMessage(object):
      def __init__(self, messageType, user, channel, messageText, serverInfo):
          self.messageType = messageType
          self.user = user
          self.channel = channel
          self.messageText = messageText
          self.serverInfo = serverInfo
          
          self.replyTo = ""
  
          if not user and not channel:
              # This message does not have a user or a channel. It's probably a server reply
              self.replyTo = ""
          elif not channel:
              self.replyTo = user.nickname
          else:
              self.replyTo = channel.name
  
subject: Use if constructions correctly