docs: def set_mode(self, mode, value=None):
          """Set mode on the channel.
  
          Arguments:
  
              mode -- The mode (a single-character string).
  
              value -- Value
          """
          if mode in self.user_modes:
              self.mode_users[mode][value] = 1
          else:
              self.modes[mode] = value